View Single Post
Old 06-05-2014, 12:20 PM   #3
BryanK
Connoisseur
BryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 66
Karma: 12538
Join Date: Oct 2011
Device: Kobo Wifi, Kobo Glo HD
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.
BryanK is offline   Reply With Quote