Fix relative path to git root
This commit is contained in:
1 parent
297d101f5f
commit
ae3e474c92
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user