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

Function ExcludePaths

tools/targets/eclipse.py:125–142  ·  view source on GitHub ↗
(rootpath, paths)

Source from the content-addressed store, hash-verified

123
124# caluclate the exclude path for project
125def ExcludePaths(rootpath, paths):
126 ret = []
127
128 files = os.listdir(OSPath(rootpath))
129 for file in files:
130 if file.startswith('.'):
131 continue
132
133 fullname = os.path.join(OSPath(rootpath), file)
134
135 if os.path.isdir(fullname):
136 # print(fullname)
137 if not fullname in paths:
138 ret = ret + [fullname]
139 else:
140 ret = ret + ExcludePaths(fullname, paths)
141
142 return ret
143
144
145rtt_path_prefix = '"${workspace_loc://${ProjName}//'

Callers 1

GenExcludingFunction · 0.85

Calls 2

OSPathFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected