shihao-hub
Results
2
comments of
shihao-hub
哦,我懂了,subprocess.Popen([sys.executable, "app.py"]) 的 sys.executable 实际指向的是 pystand.exe,所以才会出现重复启动 Qt 主窗口的情况。subprocess.Popen 应该用 runtime/python.exe。
只不过这样的话,runtime 目录中的 python312._pth 得改成这样: ```txt python312.zip . ../site-packages # Uncomment to run site.main() automatically import site ``` 不然找不到第三方库