MCPcopy Create free account
hub / github.com/modelscope/ms-agent / run

Method run

setup.py:125–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123class build_py(_build_py):
124
125 def run(self):
126 super().run()
127
128 # Copy the repository root's `projects/` into the build directory's `ms_agent/projects/`
129 src = os.path.join(os.path.dirname(__file__), 'projects')
130 if os.path.isdir(src):
131 dst = os.path.join(self.build_lib, 'ms_agent', 'projects')
132 os.makedirs(os.path.dirname(dst), exist_ok=True)
133
134 if os.path.exists(dst):
135 shutil.rmtree(dst)
136
137 shutil.copytree(src, dst)
138
139 # Build and copy webui
140 self._build_and_copy_webui()
141
142 def _build_and_copy_webui(self):
143 """Build frontend and copy webui files to build directory"""

Callers 15

_build_and_copy_webuiMethod · 0.45
test_outside_initMethod · 0.45
test_aenterMethod · 0.45
test_normal_connectMethod · 0.45
test_add_configMethod · 0.45
mainMethod · 0.45
test_code_fileMethod · 0.45
test_tool_pluginMethod · 0.45
test_exa_search_realMethod · 0.45

Calls 1

_build_and_copy_webuiMethod · 0.95

Tested by 15

test_outside_initMethod · 0.36
test_aenterMethod · 0.36
test_normal_connectMethod · 0.36
test_add_configMethod · 0.36
mainMethod · 0.36
test_code_fileMethod · 0.36
test_tool_pluginMethod · 0.36
test_exa_search_realMethod · 0.36