Fix evaluation of git paths.

This commit is contained in:
Sergio Martínez Portela 2022-08-20 19:17:08 +02:00
parent d40b49a027
commit a4981632e5

View File

@ -43,7 +43,7 @@ ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
STATIC_PATH = os.path.join(ROOT_DIR, 'static') STATIC_PATH = os.path.join(ROOT_DIR, 'static')
def is_git_path(path): 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): def load_all(top_dir_relative):
top = os.path.abspath(top_dir_relative) top = os.path.abspath(top_dir_relative)