Lines Matching full:path
16 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
17 ROOT_DIR = os.path.abspath(ROOT_DIR)
18 FROZEN_ONLY = os.path.join(ROOT_DIR, 'Tools', 'freeze', 'flag.py')
20 STDLIB_DIR = os.path.join(ROOT_DIR, 'Lib')
23 FROZEN_MODULES_DIR = os.path.join(ROOT_DIR, 'Python', 'frozen_modules')
24 DEEPFROZEN_MODULES_DIR = os.path.join(ROOT_DIR, 'Python', 'deepfreeze')
26 FROZEN_FILE = os.path.join(ROOT_DIR, 'Python', 'frozen.c')
27 MAKEFILE = os.path.join(ROOT_DIR, 'Makefile.pre.in')
28 PCBUILD_PROJECT = os.path.join(ROOT_DIR, 'PCbuild', '_freeze_module.vcxproj')
29 PCBUILD_FILTERS = os.path.join(ROOT_DIR, 'PCbuild', '_freeze_module.vcxproj.filters')
30 PCBUILD_PYTHONCORE = os.path.join(ROOT_DIR, 'PCbuild', 'pythoncore.vcxproj')
64 # We must explicitly mark os.path as a frozen module
66 f'{OS_PATH} : os.path',
95 if os.path is posixpath:
96 relpath_for_posix_display = os.path.relpath
98 def relpath_for_windows_display(path, base):
100 ntpath.join(*path.split(os.path.sep)),
101 ntpath.join(*base.split(os.path.sep)),
107 def relpath_for_posix_display(path, base):
109 posixpath.join(*path.split(os.path.sep)),
110 posixpath.join(*base.split(os.path.sep)),
185 assert not os.path.isdir(pyfile), spec
193 assert not os.path.isdir(pyfile), spec
236 pyfile = os.path.join(STDLIB_DIR, *frozenid.split('.')) + '.py'
237 #assert os.path.exists(pyfile), (frozenid, pyfile)
265 return os.path.basename(self.pyfile) == '__init__.py'
287 return os.path.join(destdir, frozenfile)
323 'frozen': os.path.basename(self.frozenfile),
350 assert os.path.isdir(pyfile) or os.path.basename(pyfile) == '__init__.py', pyfile
375 elif os.path.isdir(pyfile):
380 pkgdir = os.path.dirname(pyfile)
390 pkgdir = os.path.join(STDLIB_DIR, *pkgname.split('.'))
402 yield modname[:-3], entry.path, False
404 pyfile = os.path.join(entry.path, '__init__.py')
406 if os.path.exists(pyfile):
409 yield from _iter_submodules(modname, entry.path)
438 pathentry = os.path.normpath(pathentry)
439 assert os.path.isabs(pathentry)
441 return os.path.join(pathentry, *modname.split('.'), '__init__.py')
442 return os.path.join(pathentry, *modname.split('.')) + '.py'
468 parentdir = os.path.dirname(FROZEN_FILE)
530 print(f'# Updating {os.path.relpath(FROZEN_FILE)}')
612 print(f'# Updating {os.path.relpath(MAKEFILE)}')
669 print(f'# Updating {os.path.relpath(PCBUILD_PROJECT)}')
690 print(f'# Updating {os.path.relpath(PCBUILD_FILTERS)}')
701 print(f'# Updating {os.path.relpath(PCBUILD_PYTHONCORE)}')