# apply command-line options to the arguments
BATCHMODE_FORCED = False
+ NO_SPLASH_FORCED = False
args[script_nam] = []
for opt in cmd_opts:
if opt in [ 'g', gui_nam ] :
if not BATCHMODE_FORCED: args[gui_nam] = 1
+ if cmd_opts[opt] == ['0']:
+ args["session_gui"] = 0
+ NO_SPLASH_FORCED = True
+ pass
elif opt in [ 't', terminal_nam ] :
args[gui_nam] = 0
args[script_nam] = cmd_opts[opt]
BATCHMODE_FORCED = True
elif opt in [ 'z', splash_nam ] :
- args[splash_nam] = 1
+ if not NO_SPLASH_FORCED:
+ args[splash_nam] = 1
+ if cmd_opts[opt] == ['0']:
+ args[splash_nam] = 0
+ pass
+ pass
+ pass
elif opt in [ 'r', except_nam ] :
args[except_nam] = 1
elif opt in [ 'l', logger_nam ] :
if 'supervContainer' in self.args['containers'] or 'supervContainer' in self.args['standalone']:
self.SCMD2+=['SUPERV']
if self.args['gui']:
- self.SCMD2+=['GUI']
+ try:
+ session_gui = self.args['session_gui']
+ except KeyError:
+ session_gui = 1
+ pass
+ if session_gui:
+ self.SCMD2+=['GUI']
+ pass
+ pass
if self.args['splash'] and self.args['gui']:
self.SCMD2+=['SPLASH']
if self.args['noexcepthandler']:
import sys
if len(sys.argv) == 2:
if sys.argv[1] == "-nothing":
- searchFreePort()
+ searchFreePort({})
import os
print "port:%s"%(os.environ['NSPORT'])
import sys