One problem with mobidedrm is that it does not do any "sanity checking" of its arguments. This would normally be easy to fix, but modifying mobidedrm.py is not legal in the US. So I attach argecho.py from
Dive Into Python. If you have problems with mobidedrm, or any other python script, replace the command with argecho. This is almost the simplest possible python program. All it does is echo its arguments, one per line with the 1st line being the command name. For example:
Code:
C:\Documents and Settings\alan\My Documents\My eBooks\SOFTWARE>argecho test file.prc test file.mobi V176CXM*FZ
C:\Documents and Settings\alan\My Documents\My eBooks\SOFTWARE\argecho.py
test
file.prc
test
file.mobi
V176CXM*FZ
This first attempt did not have quotes around the filename, and so what should have been 3 arguments became 5 arguments and the third argument (4th output line) is "test" instead of "V176CXM*FZ". The 1st line of output starts with "C:" because I have argecho.py in the current directory. Adding quotes around the filenames gives the expected 3 arguments.
Code:
C:\Documents and Settings\alan\My Documents\My eBooks\SOFTWARE>argecho "test file.prc" "test file.mobi" V176CXM*FZ
C:\Documents and Settings\alan\My Documents\My eBooks\SOFTWARE\argecho.py
test file.prc
test file.mobi
V176CXM*FZ
There are no doubt many better ways to debug python scripts than using argecho, but using argecho would have made finding past issues with mobidedrm (for example) much easier.