diff --git a/src/octoprint/util/__init__.py b/src/octoprint/util/__init__.py index aa8b86f6..79de1d60 100644 --- a/src/octoprint/util/__init__.py +++ b/src/octoprint/util/__init__.py @@ -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)