MCPcopy
hub / github.com/linkedin/shiv / prepend_pythonpath

Function prepend_pythonpath

src/shiv/bootstrap/__init__.py:183–186  ·  view source on GitHub ↗

Prepend the sys.path with the value of SHIV_PREPEND_PYTHONPATH, if set.

(env)

Source from the content-addressed store, hash-verified

181
182
183def prepend_pythonpath(env):
184 """Prepend the sys.path with the value of SHIV_PREPEND_PYTHONPATH, if set."""
185 if env.prepend_pythonpath:
186 sys.path.insert(0, env.prepend_pythonpath)
187
188
189def bootstrap(): # pragma: no cover

Callers 2

bootstrapFunction · 0.85

Calls

no outgoing calls

Tested by 1