MCPcopy Create free account
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/utils/syspathcontext.py:23–24  ·  view source on GitHub ↗
(self, dir)

Source from the content-addressed store, hash-verified

21 """A context for appending a directory to sys.path for a second."""
22
23 def __init__(self, dir):
24 self.dir = dir
25
26 def __enter__(self):
27 if self.dir not in sys.path:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected