Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
fix: usr: support *nix process support
Browse files Browse the repository at this point in the history
chg: usr: Windows CMD windows hide support.

Signed-off-by: yhli <chigix@zoho.com>
  • Loading branch information
chigix committed Dec 19, 2014
1 parent e51e399 commit cfcbcde
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion check_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit cfcbcde

Please sign in to comment.