MCPcopy Index your code
hub / github.com/python/cpython / transfer_path

Method transfer_path

Lib/idlelib/pyshell.py:562–573  ·  view source on GitHub ↗
(self, with_cwd=False)

Source from the content-addressed store, hash-verified

560 return
561
562 def transfer_path(self, with_cwd=False):
563 if with_cwd: # Issue 13506
564 path = [''] # include Current Working Directory
565 path.extend(sys.path)
566 else:
567 path = sys.path
568
569 self.runcommand("""if 1:
570 import sys as _sys
571 _sys.path = {!r}
572 del _sys
573 \n""".format(path))
574
575 active_seq = None
576

Callers 2

start_subprocessMethod · 0.95
restart_subprocessMethod · 0.95

Calls 3

runcommandMethod · 0.95
extendMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected