def get_module_path(_file_=None):
    if _file_ is None:
        _file_ = get_caller_frame().f_globals['__file__']

    dir_name = os.path.dirname(os.path.abspath(_file_))
    # Check if we are in an archived package
    if int(sublime.version()) < 3000 or not dir_name.endswith(".sublime-package"):
        return dir_name, False

    # We are in a .sublime-package and need to normalize the path
    virtual_path = re.sub(r"(?:Installed )?Packages([\\/][^\\/]+)\.sublime-package(?=[\\/]|$)",
                          r"Packages\1", dir_name)
    return virtual_path, True
Return a tuple with the normalized module path plus a boolean.
dataset/ETHPy150Open FichteFoll/CSScheme/my_sublime_lib/path.py/get_module_path