我可以从Windows DLL调用Python脚本吗?

时间:2016-09-01 13:20:56

标签: python windows dll

我们想从ZBrush中调用一个Python应用程序,它具有非常有限的API。一个选项是FileExecute命令,它从Windows DLL调用方法,如下所示:

[FileExecute, PluginTest.dll, ShowMsg, "Hi There"]
# Executes the "ShowMsg" routine in "PluginTest.dll" passing it the string "Hi There"

我们可以使用Windows Python安装中包含的DLL来调用任意Python脚本吗?

[FileExecute, PythonWindows.dll, RunScript, "example.py"]
# Runs the "example.py" script (found on the PYTHONPATH)

如果没有,你会如何创建这样的DLL?

0 个答案:

没有答案