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

Method __init__

src/execution/executor.py:49–62  ·  view source on GitHub ↗
(self, config: ConfigModel, env_vars: EnvVariables)

Source from the content-addressed store, hash-verified

47
48class ScriptExecutor:
49 def __init__(self, config: ConfigModel, env_vars: EnvVariables):
50 self.config = config
51 self._env_vars = env_vars
52 self._parameter_values = dict(config.parameter_values)
53 self._working_directory = _normalize_working_dir(config.working_directory)
54
55 self.script_base_command = process_utils.split_command(
56 self.config.script_command,
57 self._working_directory)
58 self.secure_replacements = self.__init_secure_replacements()
59
60 self.process_wrapper = None # type: process_base.ProcessWrapper
61 self.raw_output_stream = None
62 self.protected_output_stream = None
63
64 def start(self, execution_id):
65 if self.process_wrapper is not None:

Callers

nothing calls this directly

Calls 2

_normalize_working_dirFunction · 0.85

Tested by

no test coverage detected