Lines Matching refs:path
5 from os.path import pardir, realpath
119 return os.path.expanduser(os.path.join(*args))
171 _PREFIX = os.path.normpath(sys.prefix)
172 _BASE_PREFIX = os.path.normpath(sys.base_prefix)
173 _EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
174 _BASE_EXEC_PREFIX = os.path.normpath(sys.base_exec_prefix)
185 def _safe_realpath(path):
187 return realpath(path)
189 return path
192 _PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
225 if os.path.isfile(os.path.join(_PROJECT_BASE, "Modules", fn)):
274 value = os.path.expanduser(value)
275 res[key] = os.path.normpath(_subst_vars(value, vars))
444 """Return the path of the Makefile."""
446 return os.path.join(_PROJECT_BASE, "Makefile")
453 return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
515 destfile = os.path.join(pybuilddir, name + '.py')
523 # Create file used for sys.path fixup -- see Modules/getpath.c
545 vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable))
588 """Return the path of pyconfig.h."""
591 inc_dir = os.path.join(_PROJECT_BASE, "PC")
596 return os.path.join(inc_dir, 'pyconfig.h')
622 """Return a path corresponding to the scheme.
677 # Always convert srcdir to an absolute path
681 # If srcdir is a relative path (typically '.' or '..')
684 base = os.path.dirname(get_makefile_filename())
685 srcdir = os.path.join(base, srcdir)
691 srcdir = os.path.dirname(get_makefile_filename())