【问题标题】:Running Python Script from inside DXL/DOORS从 DXL/DOORS 内部运行 Python 脚本
【发布时间】:2017-07-24 21:53:01
【问题描述】:

如何从 DXL/DOORS 内部运行 python 脚本?我尝试使用 system() 命令但只得到错误。

【问题讨论】:

  • aand...哪些错误?
  • 您需要更好的谷歌搜索技能,因为我很容易在 DOORS/DXL 论坛上找到您问题的答案:You shoud pass in the name of a temporary file to which the python script stores its output. Then you read the file from DXL after the python finishes.。查看 Mathias 的回答 here
  • 我确实看到了 Mathias 的回答,但它对我不起作用。非常感谢
  • 我收到错误“创建过程失败。
  • 请在原始问题中包含所有错误和您的尝试。

标签: python ibm-doors


【解决方案1】:

我建议先在命令行中尝试您的命令字符串C:\\myPython.exe H:\\myscript.py,看看是否可行。如果是这样,则可能是权限错误(除非您有与 CreateProcess 错误相关的错误代码,否则无法判断,因为有多种类型)。

然后可能值得检查您是否可以在 DOOR 的命令行中运行任何类型的命令(system("notepad") 应该可以解决问题)

如果以管理员身份运行 DOORS 无法解决您的问题,您可以通过转到 doors.exe 右键单击​​属性 -> 兼容性并选择“以管理员身份运行此程序”来解决此问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-09
    • 2013-10-19
    相关资源
    最近更新 更多