Skip to content

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

Description

@xingchenhai-x

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions