提交 15eeb25b 编写于 作者: G guozhanxin 提交者: mysterywolf

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

上级 87be8fdb
......@@ -55,6 +55,12 @@ def CollectPaths(paths):
path = path.replace('\\', '/')
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))
return sorted(all_paths)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册