diff options
Diffstat (limited to 'py/demo/Ice/async/expect.py')
-rwxr-xr-x | py/demo/Ice/async/expect.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/demo/Ice/async/expect.py b/py/demo/Ice/async/expect.py index 3eda015ea73..082b998d0c3 100755 --- a/py/demo/Ice/async/expect.py +++ b/py/demo/Ice/async/expect.py @@ -16,10 +16,11 @@ 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]) +sys.path.append(os.path.join(path[0], "scripts")) -from demoscript import * +from demoscript import Util from demoscript.Ice import async server = Util.spawn('Server.py --Ice.PrintAdapterReady') |