Lines Matching refs:path
1708 'PYTHONSAFEPATH changes default sys.path')
1997 with os_helper.temp_dir() as temp_dir, patch("os.path.expanduser"):
1998 rc_path = os.path.join(temp_dir, ".pdbrc")
1999 os.path.expanduser.return_value = rc_path
2250 '''When running `python foo.py` sys.path[0] is an absolute path. `python -m pdb foo.py` should behave the same'''
2253 print('sys.path[0] is', sys.path[0])
2258 expected = f'(Pdb) sys.path[0] is {os.path.realpath(cwd)}'
2266 '''When running `python foo.py` sys.path[0] resolves symlinks. `python -m pdb foo.py` should behave the same'''
2269 print('sys.path[0] is', sys.path[0])
2274 cwd = os.path.realpath(cwd)
2275 dir_one = os.path.join(cwd, 'dir_one')
2276 dir_two = os.path.join(cwd, 'dir_two')
2277 expected = f'(Pdb) sys.path[0] is {dir_one}'
2280 with open(os.path.join(dir_one, 'foo.py'), 'w') as f:
2283 os.symlink(os.path.join(dir_one, 'foo.py'), os.path.join(dir_two, 'foo.py'))
2285 stdout, stderr = self._run_pdb([os.path.join('dir_two', 'foo.py')], commands)
2300 subdir = os.path.join(cwd, 'subdir')
2302 os.mkdir(os.path.join(subdir, 'subdir'))
2303 wrong_file = os.path.join(subdir, 'foo.py')
2378 script_dir = os.path.join(os.path.dirname(__file__), 'encoded_modules')
2381 self._run_pdb([os.path.join(script_dir, filename)], 'q')