MCPcopy Create free account
hub / github.com/bugy/script-server / start_execution

Method start_execution

src/execution/process_popen.py:29–46  ·  view source on GitHub ↗
(self, command, working_directory)

Source from the content-addressed store, hash-verified

27 super().__init__(command, working_directory, all_env_variables)
28
29 def start_execution(self, command, working_directory):
30 shell = False
31
32 if os_utils.is_win():
33 (command, shell) = prepare_cmd_for_win(command)
34
35 env_variables = self.prepare_env_variables()
36
37 self.process = subprocess.Popen(command,
38 cwd=working_directory,
39 stdin=subprocess.PIPE,
40 stdout=subprocess.PIPE,
41 stderr=subprocess.STDOUT,
42 start_new_session=True,
43 universal_newlines=True,
44 shell=shell,
45 env=env_variables,
46 errors='replace')
47
48 def write_to_input(self, value):
49 if self.is_finished():

Callers

nothing calls this directly

Calls 2

prepare_cmd_for_winFunction · 0.85
prepare_env_variablesMethod · 0.80

Tested by

no test coverage detected