We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyStand.int 做如下修改
import os import sys import subprocess print(123) subprocess.run('python --version') os.system('python --version') os.system('python -m site') print(sys.path)
PyStand.exe 重新编译了,而且启动了console模式,上面的运行结果只有123 和sys.path被打印了,中间的没有,但是我用runtime里面的python运行上面的脚本都是可以打印的
123
sys.path
我在两台电脑上做了测试,一台是本地已经安装了Python,环境变量中有python路径的。另一台是虚拟机,没有安装过python。
在已经安装了python的电脑上 python -m site 返回的sys.path结果中是包含环境变量中的python的;没有安装python的电脑上,没有返回结果,甚至os.system('python xx.py') 也没有运行结果
python -m site
os.system('python xx.py')
正常逻辑来说,在一个python的运行时中启动另一个python进程,如果没有指定路径,那么则应该还是使用原来python的环境
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PyStand.int 做如下修改
PyStand.exe 重新编译了,而且启动了console模式,上面的运行结果只有
123
和sys.path
被打印了,中间的没有,但是我用runtime里面的python运行上面的脚本都是可以打印的我在两台电脑上做了测试,一台是本地已经安装了Python,环境变量中有python路径的。另一台是虚拟机,没有安装过python。
在已经安装了python的电脑上
python -m site
返回的sys.path结果中是包含环境变量中的python的;没有安装python的电脑上,没有返回结果,甚至os.system('python xx.py')
也没有运行结果正常逻辑来说,在一个python的运行时中启动另一个python进程,如果没有指定路径,那么则应该还是使用原来python的环境
The text was updated successfully, but these errors were encountered: