From cfcbcdea1e74e55d1495cd708f18472fa9c27266 Mon Sep 17 00:00:00 2001 From: yhli Date: Fri, 19 Dec 2014 14:35:26 +0800 Subject: [PATCH] fix: usr: support *nix process support chg: usr: Windows CMD windows hide support. Signed-off-by: yhli --- check_env.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/check_env.py b/check_env.py index cf92102..c511019 100644 --- a/check_env.py +++ b/check_env.py @@ -87,7 +87,14 @@ def freshWindows(): if self.composer: popen_list.append(self.composer); pass - php_main = subprocess.Popen(popen_list, stdin=subprocess.PIPE,stdout=subprocess.PIPE,shell=True, stderr=subprocess.PIPE, creationflags=subprocess.CREATE_NEW_CONSOLE); + startupinfo = None; + try: + startupinfo = subprocess.STARTUPINFO(); + startupinfo.dwFlags = subprocess.STARTF_USESHOWWINDOW; + except AttributeError: + #print("NOT WINDOWS"); + pass; + php_main = subprocess.Popen(popen_list, stdin=subprocess.PIPE,stdout=subprocess.PIPE,shell=False, stderr=subprocess.PIPE, startupinfo=startupinfo); ChigiArgs.GetInstance().phpMain = php_main; PhpOutputThread(php_main.stdout).start(); def initPHP():