Quote:
Originally Posted by Doitsu
You may want to test your scripts before posting them. If you had done so, you'd have found out that they don't work, because had you actually executed kindlestrip.py you'd gotten the following syntax warning:
Code:
kindlestrip.py <infile> <outfile> <strippeddatafile>
<strippeddatafile> is optional.
I didn't backup the file to filename.new; filename.new is the stripped .mobi file, which obviously needs to be saved under a different file name.
|
Unless I am typing this on my Kindle Touch, or indeed any other mobile device.
And why must the input file differ from the output? It looked to me like some artifact of the windows code to check for success by the presence of the .new file. I merely thought to cut out the middleman and do it with the if() test itself.