Lines Matching defs:path
4 import os.path
26 # See test_cmd_line_script for a test that executes that code path
202 self.expect_import_error("os.path.half")
219 pkg_fname = os.path.join(pkg_dir, "__init__.py")
231 pkg_dir = sub_dir = os.path.realpath(tempfile.mkdtemp())
233 sys.path.insert(0, pkg_dir)
234 if verbose > 1: print(" Updated sys.path:", sys.path[0])
239 sub_dir = os.path.join(sub_dir, pkg_name)
243 mod_fname = os.path.join(sub_dir, test_fname)
257 del sys.path[0]
258 if verbose > 1: print(" Removed sys.path entry")
262 os.remove(os.path.join(root, name))
266 fullname = os.path.join(root, name)
377 module_dir = os.path.join(module_dir, pkg_name)
379 sibling_fname = os.path.join(module_dir, "sibling.py")
383 uncle_dir = os.path.join(parent_dir, "uncle")
386 cousin_dir = os.path.join(uncle_dir, "cousin")
389 nephew_fname = os.path.join(cousin_dir, "nephew.py")
454 init = os.path.join(pkg_dir, "__runpy_pkg__", "__init__.py")
747 filename = os.path.join(script_dir, 'script.py')