MCPcopy Index your code
hub / github.com/nodejs/node / _StandardizePath

Method _StandardizePath

tools/gyp/pylib/gyp/xcode_emulation.py:802–812  ·  view source on GitHub ↗

Do :standardizepath processing for path.

(self, path)

Source from the content-addressed store, hash-verified

800 return install_base
801
802 def _StandardizePath(self, path):
803 """Do :standardizepath processing for path."""
804 # I'm not quite sure what :standardizepath does. Just call normpath(),
805 # but don't let @executable_path/../foo collapse to foo.
806 if "/" in path:
807 prefix, rest = "", path
808 if path.startswith("@"):
809 prefix, rest = path.split("/", 1)
810 rest = os.path.normpath(rest) # :standardizepath
811 path = os.path.join(prefix, rest)
812 return path
813
814 def GetInstallName(self):
815 """Return LD_DYLIB_INSTALL_NAME for this target."""

Callers 1

GetInstallNameMethod · 0.95

Calls 2

splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected