MCPcopy Create free account
hub / github.com/SmingHub/Sming / fixpath

Function fixpath

Tools/cfgtool.py:45–49  ·  view source on GitHub ↗

Paths in Windows can get a little weird

(path)

Source from the content-addressed store, hash-verified

43
44
45def fixpath(path):
46 """Paths in Windows can get a little weird"""
47 if len(path) > 2 and path[1] != ':' and platform.system() == 'Windows' and path[2] == '/':
48 return path[1] + ':' + path[2:]
49 return path
50
51
52def createComponentsFile():

Callers 1

createComponentsFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected