Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ prepend_pythonpath
Function
prepend_pythonpath
testing/acceptance_test.py:14–18 ·
view source on GitHub ↗
(*dirs)
Source
from the content-addressed store, hash-verified
12
13
14
def
prepend_pythonpath(*dirs) -> str:
15
cur = os.getenv(
"PYTHONPATH"
)
16
if
cur:
17
dirs += (cur,)
18
return
os.pathsep.join(str(p)
for
p in dirs)
19
20
21
class
TestGeneralUsage:
Callers
2
test_cmdline_python_namespace_package
Method · 0.85
test_cmdline_python_package_symlink
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected