run.py

来自「ICE-3.2 一个开源的中间件」· Python 代码 · 共 37 行

PY
37
字号
#!/usr/bin/env python# **********************************************************************## Copyright (c) 2003-2007 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, sysfor toplevel in [".", "..", "../..", "../../..", "../../../.."]:    toplevel = os.path.normpath(toplevel)    if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):        breakelse:    raise "can't find toplevel directory!"sys.path.append(os.path.join(toplevel, "config"))import TestUtilimport IceGridAdminname = os.path.join("IceGrid", "simple")## Test client/server without on demand activation.#IceGridAdmin.iceGridClientServerTest(name, "", "--TestAdapter.Endpoints=default" + \                                               " --TestAdapter.AdapterId=TestAdapter")## Test client/server with on demand activation.#IceGridAdmin.iceGridTest(name, "simple_server.xml", "--with-deploy")sys.exit(0)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?