summaryrefslogtreecommitdiff
path: root/src/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/version.py')
-rwxr-xr-xsrc/version.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/version.py b/src/version.py
index 003cf95..a99ede3 100755
--- a/src/version.py
+++ b/src/version.py
@@ -17,12 +17,15 @@ major = 0
minor = 0
revision = 0
mnt = 'NO'
+configure = '../configure'
+if len(sys.argv) > 2:
+ configure = sys.argv[2]
#
# open input file
# read file and get relevant information
# close
#
-f = open('../configure', 'r')
+f = open(configure, 'r')
for line in f:
# check if line can match (saves 3 comparisons)
if (line.startswith('doxygen_version')):