summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-02-07 04:09:41 +0000
committerMark Spruiell <mes@zeroc.com>2003-02-07 04:09:41 +0000
commitd29928f2d787b4e29d2adb0d5486e712e596d8f4 (patch)
tree4d58c4c1b77d089512c4667b7988e200ad1be93f /cpp
parentfixing version regexp (diff)
downloadice-d29928f2d787b4e29d2adb0d5486e712e596d8f4.tar.bz2
ice-d29928f2d787b4e29d2adb0d5486e712e596d8f4.tar.xz
ice-d29928f2d787b4e29d2adb0d5486e712e596d8f4.zip
adding getIceVersion
Diffstat (limited to 'cpp')
-rw-r--r--cpp/config/TestUtil.py7
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():