【发布时间】:2016-07-06 10:04:37
【问题描述】:
在我的 python 脚本中,我需要将命令行参数传递给 AutoIt 脚本。因为在我的 AutoIt 脚本中,我正在获取命令行参数并对其进行处理。我用来获取命令行参数的以下 AutoIt 脚本运行良好:
#include <Array.au3>
#include <WinAPIShPath.au3>
Local $aCmdLine = _WinAPI_CommandLineToArgv($CmdLineRaw)
_ArrayDisplay($aCmdLine)
现在使用我的 python 脚本,我需要将命令行参数传递给上面的 autoIt 脚本。
我尝试在 Python 脚本中使用:
import os
args = ("test","abc")
os.execv("test.au3",args)
但它给出了一个例外。
【问题讨论】:
-
异常类型和消息会告诉你究竟是什么问题。为什么你在问题中省略了它?