MCPcopy Create free account
hub / github.com/numpy/numpy / load

Function load

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

Source from the content-addressed store, hash-verified

92 suffix = sysconfig.get_config_var('EXT_SUFFIX')
93
94 def load(modname):
95 so = (target_dir / modname).with_suffix(suffix)
96 spec = spec_from_file_location(modname, so)
97 mod = module_from_spec(spec)
98 spec.loader.exec_module(mod)
99 return mod
100
101 # test that the module can be imported
102 load("extending")

Callers 1

test_cythonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected