comparison mxtool/mx.py @ 9262:0f4ae7bbe062

fixed bug in handling of -V mx option
author Doug Simon <doug.simon@oracle.com>
date Tue, 23 Apr 2013 16:55:29 +0200
parents c8f4e1081c0b
children cff647969dfa
comparison
equal deleted inserted replaced
9261:4015295cc5f5 9262:0f4ae7bbe062
978 978
979 assert isinstance(args, types.ListType), "'args' must be a list: " + str(args) 979 assert isinstance(args, types.ListType), "'args' must be a list: " + str(args)
980 for arg in args: 980 for arg in args:
981 assert isinstance(arg, types.StringTypes), 'argument is not a string: ' + str(arg) 981 assert isinstance(arg, types.StringTypes), 'argument is not a string: ' + str(arg)
982 982
983 if env is None:
984 env = os.environ
985
983 if _opts.verbose: 986 if _opts.verbose:
984 if _opts.very_verbose: 987 if _opts.very_verbose:
985 log('Environment variables:') 988 log('Environment variables:')
986 for key in sorted(os.environ.keys()): 989 for key in sorted(env.keys()):
987 log(' ' + key + '=' + os.environ[key]) 990 log(' ' + key + '=' + env[key])
988 log(' '.join(args)) 991 log(' '.join(args))
989 992
990 if timeout is None and _opts.ptimeout != 0: 993 if timeout is None and _opts.ptimeout != 0:
991 timeout = _opts.ptimeout 994 timeout = _opts.ptimeout
992 995