import subprocess
subprocess.call(['C:\Windows\System32\notepad.exe'])
Leads to error:
Traceback (most recent call last): File "C:\Program Files (x86)\Wing IDE 101 5.0\src\debug\tserver_sandbox.py", line 3, in pass File "c:\Python27\Lib\subprocess.py", line 172, in call return Popen(*popenargs, **kwargs).wait() File "c:\Python27\Lib\subprocess.py", line 408, in init errread, errwrite) File "c:\Python27\Lib\subprocess.py", line 663, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified
But I can run Notepad using that exact path from the filename bar of a folder window. What am I missing?
r'C:\...'so that backslashes aren't given any special meaning. - jasonharper