Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ _safe_realpath
Function
_safe_realpath
tools/python-3.11.9-amd64/Lib/sysconfig.py:185–189 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
183
184
185
def
_safe_realpath(path):
186
try
:
187
return
realpath(path)
188
except
OSError:
189
return
path
190
191
if
sys.executable:
192
_PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
Callers
3
sysconfig.py
File · 0.85
_init_non_posix
Function · 0.85
get_config_vars
Function · 0.85
Calls
1
realpath
Function · 0.90
Tested by
no test coverage detected