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

Function allpath

numpy/distutils/misc_util.py:129–132  ·  view source on GitHub ↗

Convert a /-separated pathname to one using the OS's path separator.

(name)

Source from the content-addressed store, hash-verified

127 return args
128
129def allpath(name):
130 "Convert a /-separated pathname to one using the OS's path separator."
131 split = name.split('/')
132 return os.path.join(*split)
133
134def rel_path(path, parent_path):
135 """Return path relative to parent_path."""

Callers 1

add_data_dirMethod · 0.85

Calls 2

splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected