Permalink
Browse files

version.py pass configure file path as parameter

in case we're building out of tree
  • Loading branch information...
groleo committed Mar 5, 2015
1 parent 5e5615a commit 75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/version.py
@@ -17,12 +17,15 @@
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')):

0 comments on commit 75e8f4c

Please sign in to comment.