Fix relative path to git root
This commit is contained in:
parent
297d101f5f
commit
ae3e474c92
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue