MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / serialize_path

Function serialize_path

tools/ninja_syntax.py:211–217  ·  view source on GitHub ↗
(input: Optional[NinjaPath])

Source from the content-addressed store, hash-verified

209
210
211def serialize_path(input: Optional[NinjaPath]) -> str:
212 if not input:
213 return ""
214 if isinstance(input, Path):
215 return str(input).replace("/", os.sep)
216 else:
217 return str(input)
218
219
220def serialize_paths(input: Optional[NinjaPathOrPaths]) -> List[str]:

Callers 4

addMethod · 0.85
writeMethod · 0.85
buildMethod · 0.85
serialize_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected