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

Function complete_from_dir

pycompletionserver.py:89–100  ·  view source on GitHub ↗

This is necessary so that we get the imports from the same directory where the file we are completing is located.

(directory)

Source from the content-addressed store, hash-verified

87
88
89def complete_from_dir(directory):
90 """
91 This is necessary so that we get the imports from the same directory where the file
92 we are completing is located.
93 """
94 global currDirModule
95 if currDirModule is not None:
96 if len(sys.path) > 0 and sys.path[0] == currDirModule:
97 del sys.path[0]
98
99 currDirModule = directory
100 sys.path.insert(0, directory)
101
102
103def change_python_path(pythonpath):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected