diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-03-05 20:56:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-03-05 20:56:02 (GMT) |
commit | 8ca7b5e920965ad0b7ac1ca0efddea9b67bfb281 (patch) | |
tree | 547d3863745c5f7aae6312181536ab56595dea04 /src/version.py | |
parent | 3f2e8a3067712b025623e4420e6eb161febfd42b (diff) | |
parent | 75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a (diff) | |
download | Doxygen-8ca7b5e920965ad0b7ac1ca0efddea9b67bfb281.zip Doxygen-8ca7b5e920965ad0b7ac1ca0efddea9b67bfb281.tar.gz Doxygen-8ca7b5e920965ad0b7ac1ca0efddea9b67bfb281.tar.bz2 |
Merge pull request #306 from groleo/master
version.py pass configure file path as parameter
Diffstat (limited to 'src/version.py')
-rwxr-xr-x | src/version.py | 5 |
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')): |