src/aoikhotkeydep/aoikimportutil.py
def import_module_by_path(mod_path, mod_name, sys_add=True, sys_use=True):
    """Import a module by module file path.

    @param mod_path: module file path.

    @param mod_name: module name to be imported as.

    @param sys_use: see func |import_module_by_code|'s same name arg.

    @param sys_add: see func |import_module_by_code|'s same name arg.
    """
    #
    mod_code = open(mod_path).read()
    # raise error

    #
    mod_obj = import_module_by_code(
        mod_code=mod_code,
        mod_name=mod_name,
        sys_use=sys_use,
        sys_add=sys_add,
    )
    # raise error

    #
    mod_obj.__file__ = mod_path

    #
    return mod_obj
Import a module by module file path.

    @param mod_path: module file path.

    @param mod_name: module name to be imported as.

    @param sys_use: see func |import_module_by_code|'s same name arg.

    @param sys_add: see func |import_module_by_code|'s same name arg.
    
Import a module by module file path.
Import a module by module file path .
def import_module_by_path(mod_path, mod_name, sys_add=True, sys_use=True):
    mod_code = open(mod_path).read()
     raise error
    mod_obj = import_module_by_code(
        mod_code=mod_code,
        mod_name=mod_name,
        sys_use=sys_use,
        sys_add=sys_add,
    )
     raise error
    mod_obj.__file__ = mod_path
    return mod_obj
def import_module_by_path ( mod_path , mod_name , sys_add = True , sys_use = True ) : mod_code = open ( mod_path ) . read ( ) mod_obj = import_module_by_code ( mod_code = mod_code , mod_name = mod_name , sys_use = sys_use , sys_add = sys_add , ) mod_obj . __file__ = mod_path return mod_obj
Import a module by module file path.
Import a module by module file path .
"""Import a module by module file path.

    @param mod_path: module file path.

    @param mod_name: module name to be imported as.

    @param sys_use: see func |import_module_by_code|'s same name arg.

    @param sys_add: see func |import_module_by_code|'s same name arg.
    """ # # raise error # # raise error # #
mod_path
module file path.
module file path .
mod_name
module name to be imported as.
module name to be imported as .
sys_add
see func |import_module_by_code|'s same name arg.
see func |import_module_by_code| ' s same name arg .
sys_use
see func |import_module_by_code|'s same name arg.
see func |import_module_by_code| ' s same name arg .