MCPcopy
hub / github.com/pex-tool/pex / _adjust_to_current_path

Function _adjust_to_current_path

pex/interpreter.py:138–143  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

136
137
138def _adjust_to_current_path(path):
139 # type: (str) -> str
140 for current_path, final_path in _PATH_MAPPINGS.items():
141 if path.startswith(final_path):
142 return current_path + path[len(final_path) :]
143 return path
144
145
146class PythonIdentity(object):

Callers 1

decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected