Fix evaluation of git paths.
This commit is contained in:
parent
d40b49a027
commit
a4981632e5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user