View Single Post
Old 04-25-2014, 07:07 PM   #15
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Doitsu View Post
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.
eschwartz is offline   Reply With Quote