Skip to content

Commit

Permalink
version.py pass configure file path as parameter
Browse files Browse the repository at this point in the history
in case we're building out of tree
  • Loading branch information
groleo committed Mar 5, 2015
1 parent 5e5615a commit 75e8f4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')):
Expand Down

0 comments on commit 75e8f4c

Please sign in to comment.