MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / PrefixPath

Function PrefixPath

tools/targets/ua.py:29–40  ·  view source on GitHub ↗
(prefix, path)

Source from the content-addressed store, hash-verified

27from utils import _make_path_relative
28
29def PrefixPath(prefix, path):
30 path = os.path.abspath(path)
31 prefix = os.path.abspath(prefix)
32
33 if sys.platform == 'win32':
34 prefix = prefix.lower()
35 path = path.lower()
36
37 if path.startswith(prefix):
38 return True
39
40 return False
41
42def PrepareUA(project, RTT_ROOT, BSP_ROOT):
43 with open('rtua.py', 'w') as ua:

Callers 1

PrepareUAFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected