chiark / gitweb /
add Mercurial to isDevVersion()
authorhg42@gmx.net <hg42@gmx.net>
Wed, 25 Dec 2013 12:40:09 +0000 (13:40 +0100)
committerhg42@gmx.net <hg42@gmx.net>
Wed, 25 Dec 2013 12:40:09 +0000 (13:40 +0100)
--HG--
extra : source : e048ef52ec5c435130f2be08cb965567e811f8e4

Cura/util/version.py

index 023649ff2b3b35f6ae53acabf700bb27fcbb1e7f..87a8b2dff76bcad304b8fd3a33f9c34edc0c343b 100644 (file)
@@ -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():