
Zachary F. answered 07/24/21
Basic Math, General Computer Skill, and Python3 Tutor
def load_module(full_path: str):
from importlib import util
import sys
from os.path import basename
mod_name = basename(full_path).split('.')[0]
spec = util.spec_from_file_location(mod_name, full_path)
module = uitl.module_from_spec(spec)
sys.modules[mod_name] = module
spec.loader.exec_module(module)