MCPcopy Index your code
hub / github.com/RustPython/RustPython / imports_under_tool

Function imports_under_tool

Lib/test/test_tools/__init__.py:33–36  ·  view source on GitHub ↗
(name, *subdirs)

Source from the content-addressed store, hash-verified

31
32@contextlib.contextmanager
33def imports_under_tool(name, *subdirs):
34 tooldir = os.path.join(toolsdir, name, *subdirs)
35 with import_helper.DirsOnSysPath(tooldir) as cm:
36 yield cm
37
38def import_tool(toolname):
39 with import_helper.DirsOnSysPath(scriptsdir):

Callers 2

test_freeze.pyFile · 0.90

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected