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

Method __init__

src/execution/process_base.py:15–27  ·  view source on GitHub ↗
(self, command, working_directory, all_env_variables: dict)

Source from the content-addressed store, hash-verified

13
14class ProcessWrapper(metaclass=abc.ABCMeta):
15 def __init__(self, command, working_directory, all_env_variables: dict):
16 self.process = None
17
18 self.working_directory = working_directory
19 self.command = command
20 self.all_env_variables = all_env_variables
21
22 self.finish_listeners = []
23
24 # output_stream is guaranteed to close not earlier than process exit
25 self.output_stream = ReplayObservable()
26
27 self.notify_finish_thread = None
28
29 def start(self):
30 self.start_execution(self.command, self.working_directory)

Callers

nothing calls this directly

Calls 1

ReplayObservableClass · 0.90

Tested by

no test coverage detected