2009-12-30, 16:41
I'm simply trying to run par2.exe to check on the integrity of a set of files. I have had a devil of a time using os.popen, os.system, and subprocess.Popen on Windows to accomplish this.
The only one that I've gotten to work at all (i.e. actually run the command) is os.system by redirecting output to a file and reading that output, but I can't get os.system to support running an executable in quotes while at the same time passing arguments (i.e. '"c:/path with spaces/par2.exe" v -q "c:/path with spaces/some.par2"') which is pretty important if I want to ship the par2.exe with my plugin and not put it in c:\temp.
Any word from the developers on fixing this capability? Upgrading python to 2.6 would probably fix it, what's the hold up on that?
The only one that I've gotten to work at all (i.e. actually run the command) is os.system by redirecting output to a file and reading that output, but I can't get os.system to support running an executable in quotes while at the same time passing arguments (i.e. '"c:/path with spaces/par2.exe" v -q "c:/path with spaces/some.par2"') which is pretty important if I want to ship the par2.exe with my plugin and not put it in c:\temp.
Any word from the developers on fixing this capability? Upgrading python to 2.6 would probably fix it, what's the hold up on that?