Lines Matching refs:path
8 import os.path
26 EXTENSIONS.path = None
34 for path in sys.path:
37 file_path = os.path.join(path, filename)
38 if os.path.exists(file_path):
39 EXTENSIONS.path = path
93 if not os.path.exists(changed_name):
109 path = os.path.join(pkg_dir, name + '.py')
110 with open(path, 'w', encoding='utf-8') as subfile:
112 return '{}.{}'.format(parent, name), path
159 location = os.path.join(cwd, name)
161 modpath = os.path.join(location, '__init__.py')
187 for attr, default in (('meta_path', []), ('path', []),
251 def find_module(self, fullname, path=None):
275 def find_spec(self, fullname, path=None, parent=None):
317 :param bytecode_path: File system path to PEP 3147 pyc file.
320 os.mkdir(os.path.dirname(bytecode_path))
345 sys.path. When the context manager exits all created files (source and
373 file_path = os.path.join(file_path, directory)
374 if not os.path.exists(file_path):
377 file_path = os.path.join(file_path, name_parts[-1] + '.py')
384 state_manager = import_state(path=[temp_dir])