repo.or.cz
/
pyplotsuite.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Version retrival fixes for the About Dialogs
[pyplotsuite.git]
/
pyplotsuite
/
common
/
version.py
blob
cae87c47d3f68ba9eb5e4257ff942ab27f12bd8d
1
2
def
read_version
(
rootdir
):
3
""" Extract version from the VERSION file. """
4
file
=
open
(
rootdir
+
'VERSION'
)
5
ver
=
file
.
readline
().
strip
()
6
file
.
close
()
7
return
ver
8