MCPcopy
hub / github.com/raspberrypi/documentation / escape_path

Function escape_path

scripts/ninja_syntax.py:28–29  ·  view source on GitHub ↗
(word)

Source from the content-addressed store, hash-verified

26import types
27
28def escape_path(word):
29 return word.replace('$ ', '$$ ').replace(' ', '$ ').replace(':', '$:')
30
31class Writer(object):
32 # specify a width of 0 to disable text-wrapping

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected