@aleyx: You can save yourself having to call subprocess to get the current calibre version by running your script using calibre itself, like this:
calibre-debug update-calibre.py
and in update-calibre.py
from calibre.constants import numeric_version
...
the rest of the script should be the same
|