chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6aaa59
)
add Mercurial to isDevVersion()
author
hg42@gmx.net
<hg42@gmx.net>
Wed, 25 Dec 2013 12:40:09 +0000
(13:40 +0100)
committer
hg42@gmx.net
<hg42@gmx.net>
Wed, 25 Dec 2013 12:40:09 +0000
(13:40 +0100)
--HG--
extra : source :
e048ef52ec5c435130f2be08cb965567e811f8e4
Cura/util/version.py
patch
|
blob
|
history
diff --git
a/Cura/util/version.py
b/Cura/util/version.py
index 023649ff2b3b35f6ae53acabf700bb27fcbb1e7f..87a8b2dff76bcad304b8fd3a33f9c34edc0c343b 100644
(file)
--- 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():