Skip to content

Commit 3dcc7a6

Browse files
authored
Merge pull request #3253 from armink/fix_eclipse
[tools] remove unused path when using scons target eclipse.
2 parents 500b549 + 9aa3b58 commit 3dcc7a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/eclipse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ def GenExcluding(env, project):
336336
coll_dirs = CollectPaths(project['DIRS'])
337337
all_paths = [OSPath(path) for path in coll_dirs]
338338

339+
# remove unused path
340+
for path in all_paths:
341+
if not path.startswith(rtt_root) and not path.startswith(bsp_root):
342+
all_paths.remove(path)
343+
339344
if bsp_root.startswith(rtt_root):
340345
# bsp folder is in the RT-Thread root folder, such as the RT-Thread source code on GitHub
341346
exclude_paths = ExcludePaths(rtt_root, all_paths)

0 commit comments

Comments
 (0)