From a4981632e51c4aac4f098e824544daa26e8da56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sat, 20 Aug 2022 19:17:08 +0200 Subject: [PATCH] Fix evaluation of git paths. --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index 0493f9a..1597b14 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -43,7 +43,7 @@ ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) STATIC_PATH = os.path.join(ROOT_DIR, 'static') def is_git_path(path): - return any([chunk == ".git" for chunk in os.path.split(path)]) + return any([chunk == ".git" for chunk in path.split(os.sep)]) def load_all(top_dir_relative): top = os.path.abspath(top_dir_relative)