MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / escapifyPath

Function escapifyPath

deps/bootstrap.py:112–117  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

110 raise ValueError("Command returned non-zero status: " + str(res));
111
112def escapifyPath(path):
113 if path.find(" ") == -1:
114 return path
115 if platform.system() == "Windows":
116 return "\"" + path + "\""
117 return path.replace("\\ ", " ")
118
119def cloneRepository(type, url, target_name, revision = None, try_only_local_operations = False):
120 target_dir = escapifyPath(os.path.join(SRC_DIR, target_name))

Callers 1

cloneRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected