Lines Matching refs:path
127 # Mutate self to be the "real path".
128 res = super().__new__(cls, os.path.realpath(val))
130 # Store the original path for error reporting.
136 if not os.path.exists(self):
140 # Replace pdb's dir with script's dir in front of module search path.
141 sys.path[0] = os.path.dirname(self)
192 __file__=os.path.normcase(os.path.abspath(self.filename)),
238 with open(os.path.expanduser('~/.pdbrc'), encoding='utf-8') as rcFile:
547 if os.path.isdir(fn):
549 elif os.path.isfile(fn) and fn.lower().endswith(('.py', '.pyw')):
687 sys.path; the .py suffix may be omitted.
713 self.error('%r not found from sys.path' % filename)
748 'or was not found along sys.path.' % arg)
1607 if os.path.isabs(filename) and os.path.exists(filename):
1609 f = os.path.join(sys.path[0], filename)
1610 if os.path.exists(f) and self.canonic(f) == self.mainpyfile:
1612 root, ext = os.path.splitext(filename)
1615 if os.path.isabs(filename):
1617 for dirname in sys.path:
1618 while os.path.islink(dirname):
1620 fullname = os.path.join(dirname, filename)
1621 if os.path.exists(fullname):