Python has a 'subprocess' module that allows you to make system calls just like you were typing them on the command line. If you can post the commands you're using to unzip/zip your epub it should be straightforward to modify the script.
Edit:
If you could also re-post the script using the [CODE] wrapper rather than [SPOILER], Python is really particular about spacing and [SPOILER] doesn't preserve it. Hopefully, posting 15 or so lines of code won't give anybody heartburn.
Last edited by BryanK; 06-05-2014 at 02:32 PM.
|