MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / change_python_path

Function change_python_path

pycompletionserver.py:103–114  ·  view source on GitHub ↗

Changes the pythonpath (clears all the previous pythonpath) @param pythonpath: string with paths separated by |

(pythonpath)

Source from the content-addressed store, hash-verified

101
102
103def change_python_path(pythonpath):
104 """Changes the pythonpath (clears all the previous pythonpath)
105
106 @param pythonpath: string with paths separated by |
107 """
108
109 split = pythonpath.split("|")
110 sys.path = []
111 for path in split:
112 path = path.strip()
113 if len(path) > 0:
114 sys.path.append(path)
115
116
117class Processor:

Callers 1

runMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected