diff options
Diffstat (limited to 'cpp/demo/IceGrid/icebox/expect.py')
-rwxr-xr-x | cpp/demo/IceGrid/icebox/expect.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cpp/demo/IceGrid/icebox/expect.py b/cpp/demo/IceGrid/icebox/expect.py new file mode 100755 index 00000000000..b5d15e89099 --- /dev/null +++ b/cpp/demo/IceGrid/icebox/expect.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import sys, os + +try: + import demoscript +except ImportError: + for toplevel in [".", "..", "../..", "../../..", "../../../.."]: + toplevel = os.path.normpath(toplevel) + if os.path.exists(os.path.join(toplevel, "demoscript")): + break + else: + raise "can't find toplevel directory!" + sys.path.append(os.path.join(toplevel)) + import demoscript + +import demoscript.Util +demoscript.Util.defaultLanguage = "C++" +import demoscript.IceGrid.icebox + +demoscript.IceGrid.icebox.run('./client') |