예제 #1
0
파일: core.py 프로젝트: kakwa/pyak47
def load_script(script_file):
    """
    Load a test scripts as Python module.
    :returns: Imported script as python module.
    """
    module = ScriptLoader.load(script_file)
    # -- SKIP-HERE: ScriptValidator.ensure_module_valid(module)
    # NOTE: Performed above in ScriptLoader.load_all() at process start.
    return module