<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def import_path(mod_path, mod_name):
 """Import a module by module file path. @param mod_path: module file path. @param mod_name: module name. """

    mod_code = open(mod_path).read()

    mod_obj = import_code(
        mod_code=mod_code,
        mod_name=mod_name,
    )

    if not hasattr(mod_obj, '__file__'):
        mod_obj.__file__ = mod_path

    return mod_obj