Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _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
188
def
_safe_realpath(path):
189
try
:
190
return
realpath(path)
191
except
OSError:
192
return
path
193
194
if
sys.executable:
195
_PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
Callers
3
__init__.py
File · 0.85
_init_non_posix
Function · 0.85
_init_config_vars
Function · 0.85
Calls
1
realpath
Function · 0.90
Tested by
no test coverage detected