From: hg42@gmx.net Date: Wed, 25 Dec 2013 12:40:09 +0000 (+0100) Subject: add Mercurial to isDevVersion() X-Git-Tag: 14.01~9^2~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fc015dccec7f473550817bd2445ae4d1c202a790;p=cura.git add Mercurial to isDevVersion() --HG-- extra : source : e048ef52ec5c435130f2be08cb965567e811f8e4 --- 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():