【修复】工作目录下,当某一目录下的源文件都不需要添加到工程时,此目录不会被屏蔽的问题。

This commit is contained in:
guozhanxin 2022-11-01 14:17:02 +08:00 committed by Man, Jianting (Meco)
parent 87be8fdba8
commit 15eeb25ba0
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ def CollectPaths(paths):
path = path.replace('\\', '/') path = path.replace('\\', '/')
all_paths = all_paths + [path] + ParentPaths(path) all_paths = all_paths + [path] + ParentPaths(path)
cwd = os.getcwd()
for path in os.listdir(cwd):
temp_path = cwd.replace('\\', '/') + '/' + path
if os.path.isdir(temp_path):
all_paths = all_paths + [temp_path]
all_paths = list(set(all_paths)) all_paths = list(set(all_paths))
return sorted(all_paths) return sorted(all_paths)