MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / importFileModule

Function importFileModule

scripts/reflib.py:685–692  ·  view source on GitHub ↗

importFileModule - import file as a module and return that module

(file)

Source from the content-addressed store, hash-verified

683 return (branch, '')
684
685def importFileModule(file):
686 """importFileModule - import file as a module and return that module"""
687
688 (path, file) = os.path.split(file)
689 (module, extension) = os.path.splitext(file)
690 sys.path.append(path)
691
692 return importlib.import_module(module)
693

Callers 2

genRef.pyFile · 0.90

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected