summaryrefslogtreecommitdiff
path: root/java/test/IceGrid/simple/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/IceGrid/simple/run.py')
-rwxr-xr-xjava/test/IceGrid/simple/run.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/java/test/IceGrid/simple/run.py b/java/test/IceGrid/simple/run.py
index 568bbe5fa53..c0e31578fda 100755
--- a/java/test/IceGrid/simple/run.py
+++ b/java/test/IceGrid/simple/run.py
@@ -16,9 +16,9 @@ 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, "scripts", "TestUtil.py")) ]
if len(path) == 0:
- raise "can't find toplevel directory!"
-sys.path.append(os.path.join(path[0]))
-from scripts import *
+ raise RuntimeError("can't find toplevel directory!")
+sys.path.append(os.path.join(path[0], "scripts"))
+import TestUtil, IceGridAdmin
#
# Test client/server without on demand activation.
@@ -29,4 +29,3 @@ IceGridAdmin.iceGridClientServerTest("", "--TestAdapter.Endpoints=default --Test
# Test client/server with on demand activation.
#
IceGridAdmin.iceGridTest("simple_server.xml", "--with-deploy")
-