MCPcopy 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
14def 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
21class TestGeneralUsage:

Calls

no outgoing calls

Tested by

no test coverage detected