MCPcopy Index your code
hub / github.com/python/cpython / _safe_realpath

Function _safe_realpath

Lib/sysconfig/__init__.py:188–192  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

186
187
188def _safe_realpath(path):
189 try:
190 return realpath(path)
191 except OSError:
192 return path
193
194if sys.executable:
195 _PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))

Callers 3

__init__.pyFile · 0.85
_init_non_posixFunction · 0.85
_init_config_varsFunction · 0.85

Calls 1

realpathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…