Ejemplo n.º 1
0
 def _start_subprocess(self):
     cmd_line, env = miro_helper_program_info()
     kwargs = {
               "stdout": subprocess.PIPE,
               "stdin": subprocess.PIPE,
               "stderr": open(os.devnull, 'wb'),
               "env": env,
               "close_fds": True
     }
     process = Popen(cmd_line, **kwargs)
     return process
Ejemplo n.º 2
0
 def _start_subprocess(self):
     cmd_line, env = utils.miro_helper_program_info()
     kwargs = {
               "stdout": subprocess.PIPE,
               "stdin": subprocess.PIPE,
               "stderr": open(os.devnull, 'wb'),
               "env": env,
               "close_fds": True
     }
     process = Popen(cmd_line, **kwargs)
     self.start_time = clock.clock()
     return process
Ejemplo n.º 3
0
 def _start_subprocess(self):
     cmd_line, env = miro_helper_program_info()
     kwargs = {
               "stdout": subprocess.PIPE,
               "stdin": subprocess.PIPE,
               "startupinfo": util.no_console_startupinfo(),
               "env": env,
     }
     if _on_windows():
         # normally we just clone stderr for the subprocess, but on windows
         # this doesn't work.  So we use a pipe that we immediately close
         kwargs["stderr"] = subprocess.PIPE
     else:
         kwargs["stderr"] = None
         kwargs["close_fds"] = True
     process = subprocess.Popen(cmd_line, **kwargs)
     if _on_windows():
         process.stderr.close()
     return process
Ejemplo n.º 4
0
 def _start_subprocess(self):
     cmd_line, env = miro_helper_program_info()
     kwargs = {
         "stdout": subprocess.PIPE,
         "stdin": subprocess.PIPE,
         "startupinfo": util.no_console_startupinfo(),
         "env": env,
     }
     if _on_windows():
         # normally we just clone stderr for the subprocess, but on windows
         # this doesn't work.  So we use a pipe that we immediately close
         kwargs["stderr"] = subprocess.PIPE
     else:
         kwargs["stderr"] = None
         kwargs["close_fds"] = True
     process = subprocess.Popen(cmd_line, **kwargs)
     if _on_windows():
         process.stderr.close()
     return process