summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/callback/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Glacier2/callback/expect.py')
-rwxr-xr-xcpp/demo/Glacier2/callback/expect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Glacier2/callback/expect.py b/cpp/demo/Glacier2/callback/expect.py
index b5e9633eeb9..f7430af0d59 100755
--- a/cpp/demo/Glacier2/callback/expect.py
+++ b/cpp/demo/Glacier2/callback/expect.py
@@ -16,10 +16,10 @@ if len(head) > 0:
path = [os.path.join(head, p) for p in path]
path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "demoscript")) ]
if len(path) == 0:
- raise "can't find toplevel directory!"
+ raise RuntimeError("can't find toplevel directory!")
sys.path.append(path[0])
-from demoscript import *
+from demoscript import Util
from demoscript.Glacier2 import callback
server = Util.spawn('./server --Ice.PrintAdapterReady')