When executing the following code snippet import process ... ... for x in Files: Command_String = 'C:\Program Files\WinRK\WinRK.exe -create ' + os.path.join(InputDirectory, os.path.splitext(x)[0]) + ' -set compression_method ppmz -setg include_paths none -add ' + os.path.join(InputDirectory, x) + ' -apply -quit' PROC = process.Process(Command_String) PROC.wait()
from the command line C:\Documents and Settings\eeiland\Desktop>Thesis_Programs\Compressor2.py Test_Da ta\sliceX12 Test_Output\Test generates the following error: Traceback (most recent call last): File "C:\Documents and Settings\eeiland\Desktop\Thesis_Programs\Compressor2.py ", line 61, in ? PROC = process.Process(Command_String) File "C:\Python24\Lib\site-packages\process.py", line 839, in __init__ self._startOnWindows() File "C:\Python24\Lib\site-packages\process.py", line 913, in _startOnWindows cmd = _whichFirstArg(cmd, self._env) File "C:\Python24\Lib\site-packages\process.py", line 303, in _whichFirstArg import which ImportError: No module named which -- http://mail.python.org/mailman/listinfo/python-list