MCPcopy
hub / github.com/hyperopt/hyperopt / exec_import

Function exec_import

hyperopt/mongoexp.py:1182–1185  ·  view source on GitHub ↗
(cmd_module, cmd)

Source from the content-addressed store, hash-verified

1180
1181
1182def exec_import(cmd_module, cmd):
1183 worker_fn = None
1184 exec(f"import {cmd_module}; worker_fn = {cmd}")
1185 return worker_fn
1186
1187
1188def as_mongo_str(s):

Callers 1

run_oneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected