summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-11-28 22:27:50 +0100
committerBenoit Foucher <benoit@zeroc.com>2012-11-28 22:27:50 +0100
commitd7dd609c9062673a0f982e941efe0a7b90980532 (patch)
tree39fd0b37f2ca11b47227e89cc1e5b64b008b1901 /demoscript/Util.py
parentFixed compile error in VB value demo (diff)
downloadice-d7dd609c9062673a0f982e941efe0a7b90980532.tar.bz2
ice-d7dd609c9062673a0f982e941efe0a7b90980532.tar.xz
ice-d7dd609c9062673a0f982e941efe0a7b90980532.zip
Added back demoscript/Util.py defaultHost
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index 2ad87a7c129..cda8b01cbb1 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -38,6 +38,7 @@ preferIPv4 = False
serviceDir = None
demoErrors = []
tracefile = None
+defaultHost = None
#
# Default value of --Ice.Default.Host
@@ -536,10 +537,10 @@ def spawn(command, cwd = None, mapping = None):
for arg in tokens[1:len(tokens)]:
args += " " + arg
- global host
- if host != "":
- command = '%s --Ice.Default.Host=%s' % (command, host)
- args = '%s --Ice.Default.Host=%s' % (args, host)
+ global defaultHost
+ if defaultHost:
+ command = '%s %s' % (command, defaultHost)
+ args = '%s %s' % (args, defaultHost)
# magic
knownCommands = [ "icegridnode", "icegridregistry", "icebox", "iceboxd", "icegridadmin", "icestormadmin",
@@ -625,6 +626,7 @@ def processCmdLine():
global preferIPv4
global debug
global host
+ global defaultHost
global iceHome
global serviceDir
@@ -665,6 +667,9 @@ def processCmdLine():
if buildmode != 'debug' and buildmode != 'release':
usage()
+ if host != "":
+ defaultHost = " --Ice.Default.Host=%s" % (host)
+
if not iceHome and os.environ.get("USE_BIN_DIST", "no") == "yes" or os.environ.get("ICE_HOME", "") != "":
if os.environ.get("ICE_HOME", "") != "":
iceHome = os.environ["ICE_HOME"]