Permalink
Browse files

Shell issues fixed

  • Loading branch information...
1 parent 5fb960c commit 7bcc28430570490c265fdbd7e82fa1bc7cc77df4 Daniel Shannon committed Mar 28, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 pandownProcess.py
View
@@ -37,7 +37,11 @@ def __init__(self, command, env, listener):
for k, v in list(processEnvironment.items()):
processEnvironment[k] = os.path.expandvars(v)
- self.process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, startupinfo=startupinfo, env=processEnvironment, shell=True)
+ if sublime.platform() == "windows":
+ shell = True
+ else:
+ shell = False
+ self.process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, startupinfo=startupinfo, env=processEnvironment, shell=shell)
if self.process.stdout:
# _thread.start_new_thread(self.read_stdout, ())
threading.Thread(target=self.read_stdout).start()

0 comments on commit 7bcc284

Please sign in to comment.