From fc015dccec7f473550817bd2445ae4d1c202a790 Mon Sep 17 00:00:00 2001 From: "hg42@gmx.net" Date: Wed, 25 Dec 2013 13:40:09 +0100 Subject: [PATCH] add Mercurial to isDevVersion() --HG-- extra : source : e048ef52ec5c435130f2be08cb965567e811f8e4 --- Cura/util/version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cura/util/version.py b/Cura/util/version.py index 023649ff..87a8b2df 100644 --- a/Cura/util/version.py +++ b/Cura/util/version.py @@ -53,7 +53,8 @@ def getVersion(getGitVersion = True): def isDevVersion(): gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../.git")) - return os.path.exists(gitPath) + hgPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../.hg")) + return os.path.exists(gitPath) or os.path.exists(hgPath) def checkForNewerVersion(): if isDevVersion(): -- 2.30.2