From 15eeb25ba05d8218fb55240308d8342b1a9296b1 Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Tue, 1 Nov 2022 14:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=9B=AE=E5=BD=95=E4=B8=8B=EF=BC=8C=E5=BD=93=E6=9F=90?= =?UTF-8?q?=E4=B8=80=E7=9B=AE=E5=BD=95=E4=B8=8B=E7=9A=84=E6=BA=90=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=83=BD=E4=B8=8D=E9=9C=80=E8=A6=81=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=B0=E5=B7=A5=E7=A8=8B=E6=97=B6=EF=BC=8C=E6=AD=A4=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E4=B8=8D=E4=BC=9A=E8=A2=AB=E5=B1=8F=E8=94=BD=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/eclipse.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/eclipse.py b/tools/eclipse.py index f6109df5ed..878dbdbbe5 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -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)