简体   繁体   中英

Efficient way of launching python script from exe

I know there's a lot of questions asking about the opposite, but is there a particularly good way to launch a Python script from an executable? The executable itself was originally written in Python and compiled using py2exe so I was thinking of using popen() and passing python myscript.py but not sure if that's the most efficient.

The particular script being launched would be Python 2.7 with the Python ArcGIS interpreter.

如果您只是想在外部执行python脚本,那么就可以按照您所说的那样在脚本上使用popen()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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