#!/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 os, sys for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.abspath(toplevel) if os.path.exists(os.path.join(toplevel, "config", "DemoUtil.py")): break else: raise "can't find toplevel directory!" sys.path.append(os.path.join(toplevel, "config")) import DemoUtil # # List of all basic demos. # demos = [ "Ice/async", "Ice/bidir", "Ice/callback", "Ice/hello", "Ice/latency", "Ice/minimal", "Ice/session", "Ice/throughput", "Ice/value", "IceStorm/clock", "IceGrid/simple", "Glacier2/callback", "book/printer", "book/simple_filesystem" ] DemoUtil.run(demos)