Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ is_site_path
Function
is_site_path
library/python/pytest/main.py:93–97 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
91
site_paths = (
'site-packages'
,
'site-python'
)
92
93
def
is_site_path(path):
94
for
p in site_paths:
95
if
path.find(p) != -1:
96
return
True
97
return
False
98
99
new_paths = list(paths)
100
for
p in paths:
Callers
1
remove_user_site
Function · 0.85
Calls
1
find
Method · 0.45
Tested by
no test coverage detected