【发布时间】:2013-04-02 11:28:03
【问题描述】:
假设我有一个文件RegressionSystem.exe。我想用-config 参数执行这个可执行文件。命令行应该是这样的:
RegressionSystem.exe -config filename
我试过这样:
regression_exe_path = os.path.join(get_path_for_regression,'Debug','RegressionSystem.exe')
config = os.path.join(get_path_for_regression,'config.ini')
subprocess.Popen(args=[regression_exe_path,'-config', config])
但是没有用。
【问题讨论】:
-
怎么没用?错误信息是什么?
标签: python windows python-2.7 subprocess