简体   繁体   English

如何使用Python DLL执行Python脚本?

[英]How to execute a Python script using the Python DLL?

I have a Python DLL already shipped and installed on the end user (guaranteed, and with a known version number). 我有一个Python DLL已出厂并安装在最终用户上(保证,并且具有已知的版本号)。

How can I use this DLL to execute some Python scripts without shipping the Python interpreter (again)? 如何使用此DLL执行某些Python脚本而又不交付Python解释器?

您需要将Python嵌入另一个应用程序,并使用PyRun_AnyFile*()运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM