我正在尝试使用jenkins执行以下cmd:
psexec \\__SERVER__ -u ACCOUNT -p PASSWORD python \\CODE_SERVER\Main.py
在我的python代码中,执行以下行:
subprocess.call("start c:\\some_app.exe end")
该行引发以下错误:
File "C:\Python27\lib\subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
**WindowsError: [Error 2] The system cannot find the file specified
python exited on __SERVER__ with error code 1.**
我已经确保CODE_SERVER具有正确的共享权限。 并且我已经尝试了以下子流程调用:
subprocess.call("start \\\\__SERVER__ \\some_app.exe end")
如何避免执行此应用程序c:\ some_app.exe?