subprocess - Python Popen difficulties: File not found -
I am trying to use Python to run a program.
Subprocesses import Popen Sa_proc = popen (['C: \\ sa \\ sa.exe', '-?'])
this short WindowsError: [Error 2] The system can not find the file specified
The program is present and I have a full path explorer with Explorer I have tried copying and pasting directly. I have tried other things and found that if I put the xi in the sec folder with the Python script and using './sa.exe' I received so it works. The only thing I can think of is that I am running Python Script (and Python) with a different partition (F :).
Any thoughts? As it says, "In Windows: Poppin Class uses CreateProcess () to execute a child program, which runs on a string. If Argus is a sequence, then it will use the list 2cmdline () method in the string It may be converted. "Maybe this method is messing things up, so why not try a simple approach to this:
\ Sa.exe -? ')
If it still fails, then: Or the os.environ [ 'COMSPEC']
before doing so? What happens if you add the argument to , shell = true
to popen
?
Edit : Apparently it is a matter of simple misspellings, because 'sa' is actually a program that is spam assassin - twice twice - and how the OP written Was Spamasacin - a double but a second time also.
Comments
Post a Comment