Lines Matching refs:path
467 leading path components.
758 pkg_dir = os.path.join(parent_dir, pkg_name)
760 sys.path.append(parent_dir)
765 sys.path.pop()
1053 between Python versions. For example, in Python 2.x, the module path of
1079 But in Python 3 the module path is included, and therefore a test must look
1108 The module path will be completely ignored, so two different module paths will
2325 '/' should be used as a path separator. It will be converted
2335 >>> import types, os.path, test.test_doctest
2346 >>> # Get the absolute path of the test package.
2347 >>> test_doctest_path = os.path.abspath(test.test_doctest.__file__)
2348 >>> test_pkg_path = os.path.split(test_doctest_path)[0]
2350 >>> # Use it to find the absolute path of test_doctest.txt.
2351 >>> test_file = os.path.join(test_pkg_path, 'test_doctest.txt')
2730 def find_spec(self, fullname, path, target=None):
2731 return importlib.util.spec_from_file_location(fullname, path, loader=self)
2733 def get_data(self, path):
2734 with open(path, mode='rb') as f:
2740 self.sys_path = sys.path[:]
2743 sys.path.append(pathdir)
2750 sys.path[:] = self.sys_path
2815 >>> pkg = os.path.join(dn, "doctest_testpkg")
2817 >>> os_helper.create_empty_file(os.path.join(pkg, "__init__.py"))
2818 >>> fn = os.path.join(pkg, "doctest_testfile.txt")
2904 ... fn = os.path.join(tmpdir, 'myfile.doc')
2956 ... fn = os.path.join(tmpdir, 'myfile.doc')
2967 ... fn2 = os.path.join(tmpdir, 'myfile2.py')