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)