From ae3e474c929b17294d88379210db0fcd00f669ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 18 Nov 2013 13:35:40 +0100 Subject: [PATCH] Fix relative path to git root --- src/octoprint/util/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)