diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-02-07 04:09:41 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-02-07 04:09:41 +0000 |
commit | d29928f2d787b4e29d2adb0d5486e712e596d8f4 (patch) | |
tree | 4d58c4c1b77d089512c4667b7988e200ad1be93f /cpp | |
parent | fixing version regexp (diff) | |
download | ice-d29928f2d787b4e29d2adb0d5486e712e596d8f4.tar.bz2 ice-d29928f2d787b4e29d2adb0d5486e712e596d8f4.tar.xz ice-d29928f2d787b4e29d2adb0d5486e712e596d8f4.zip |
adding getIceVersion
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/config/TestUtil.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py index ce473d8e203..cf05fdf93d4 100644 --- a/cpp/config/TestUtil.py +++ b/cpp/config/TestUtil.py @@ -43,7 +43,12 @@ host = "localhost" # Don't change anything below this line! # -import sys, os +import sys, os, re + +def getIceVersion(): + + config = open(os.path.join(toplevel, "include", "IceUtil", "Config.h"), "r") + return re.search("ICE_STRING_VERSION \"([0-9\.]*)\"", config.read()).group(1) def isCygwin(): |