Lines Matching refs:path
30 def AddPackagePath(packagename, path):
31 packagePathMap.setdefault(packagename, []).append(path)
45 def _find_module(name, path=None):
54 spec = importlib.machinery.PathFinder.find_spec(name, path)
70 return None, os.path.dirname(file_path), ("", "", _PKG_DIRECTORY)
85 suffix = os.path.splitext(file_path)[-1]
92 def __init__(self, name, file=None, path=None):
95 self.__path__ = path
116 def __init__(self, path=None, debug=0, excludes=None, replace_paths=None):
117 if path is None:
118 path = sys.path
119 self.path = path
156 dir, name = os.path.split(pathname)
157 name, ext = os.path.splitext(name)
473 def find_module(self, name, path, parent=None):
475 # assert path is not None
483 if path is None:
487 path = self.path
489 return _find_module(name, path)
580 new_filename = original_filename = os.path.normpath(co.co_filename)
635 # Set the path based on sys.path and the script directory
636 path = sys.path[:]
637 path[0] = os.path.dirname(script)
638 path = addpath + path
640 print("path:")
641 for item in path:
645 mf = ModuleFinder(path, debug, exclude)