Fix relative path to git root

This commit is contained in:
Gina Häußge 2013-11-18 13:35:40 +01:00
parent 297d101f5f
commit ae3e474c92

View file

@ -56,7 +56,7 @@ def getClass(name):
def isDevVersion():
gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../.git"))
gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../../.git"))
return os.path.exists(gitPath)
@ -66,7 +66,7 @@ def getExceptionString():
def getGitInfo():
gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../.git"))
gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../../.git"))
if not os.path.exists(gitPath):
return (None, None)