MCPcopy Create free account
hub / github.com/numpy/numpy / normpath

Function normpath

tools/cythonize.py:135–139  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

133#
134
135def normpath(path):
136 path = path.replace(os.sep, '/')
137 if path.startswith('./'):
138 path = path[2:]
139 return path
140
141def get_hash(frompath, topath):
142 from_hash = sha256_of_file(frompath)

Callers 3

processFunction · 0.85
get_library_dirsMethod · 0.85
get_library_dirsMethod · 0.85

Calls 2

replaceMethod · 0.80
startswithMethod · 0.80

Tested by

no test coverage detected