MCPcopy Index your code
hub / github.com/numpy/numpy / load

Function load

numpy/random/tests/test_extending.py:105–110  ·  view source on GitHub ↗
(modname)

Source from the content-addressed store, hash-verified

103 suffix = sysconfig.get_config_var('EXT_SUFFIX')
104
105 def load(modname):
106 so = (target_dir / modname).with_suffix(suffix)
107 spec = spec_from_file_location(modname, so)
108 mod = module_from_spec(spec)
109 spec.loader.exec_module(mod)
110 return mod
111
112 # test that the module can be imported
113 load("extending")

Callers 1

test_cythonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…