MCPcopy
hub / github.com/pytest-dev/pytest / _configure_python_path

Method _configure_python_path

src/_pytest/config/__init__.py:1371–1375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1369 hook.mark_rewrite(name)
1370
1371 def _configure_python_path(self) -> None:
1372 # `pythonpath = a b` will set `sys.path` to `[a, b, x, y, z, ...]`
1373 for path in reversed(self.getini("pythonpath")):
1374 sys.path.insert(0, str(path))
1375 self.add_cleanup(self._unconfigure_python_path)
1376
1377 def _unconfigure_python_path(self) -> None:
1378 for path in self.getini("pythonpath"):

Callers 1

parseMethod · 0.95

Calls 3

getiniMethod · 0.95
add_cleanupMethod · 0.95
insertMethod · 0.80

Tested by

no test coverage detected