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

Method dist_load_module

numpy/distutils/ccompiler_opt.py:702–709  ·  view source on GitHub ↗

Load a module from file, required by the abstract class '_Cache'.

(name, path)

Source from the content-addressed store, hash-verified

700
701 @staticmethod
702 def dist_load_module(name, path):
703 """Load a module from file, required by the abstract class '_Cache'."""
704 from .misc_util import exec_mod_from_location
705 try:
706 return exec_mod_from_location(name, path)
707 except Exception as e:
708 _Distutils.dist_log(e, stderr=True)
709 return None
710
711 @staticmethod
712 def _dist_str(*args):

Callers 1

__init__Method · 0.80

Calls 2

exec_mod_from_locationFunction · 0.85
dist_logMethod · 0.45

Tested by

no test coverage detected