From 75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a Mon Sep 17 00:00:00 2001 From: Adrian Negreanu Date: Thu, 5 Mar 2015 13:54:03 +0200 Subject: version.py pass configure file path as parameter in case we're building out of tree --- src/version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')): -- cgit v0.12