Skip to content
New issue

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

关于pyw运行后弹cmd窗口问题 #8

Open
xingchenhai-x opened this issue Sep 30, 2022 · 0 comments
Open

关于pyw运行后弹cmd窗口问题 #8

xingchenhai-x opened this issue Sep 30, 2022 · 0 comments

Comments

@xingchenhai-x
Copy link

解决方法:在ComputerMonitor.py中修改outputall=subprocess.check_output(callall)添加shell=True参数
问题:因为对这个subprocess不熟悉,查看手册,上面说“如果传递一个简单的字符串,则 shell 参数必须为 [True]”,不知是否为这个原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant