# HG changeset patch # User Doug Simon # Date 1366728929 -7200 # Node ID 0f4ae7bbe062804ce6f8118df7813d171443784c # Parent 4015295cc5f5823e081fab8c8cffedb63ff5e435 fixed bug in handling of -V mx option diff -r 4015295cc5f5 -r 0f4ae7bbe062 mxtool/mx.py --- a/mxtool/mx.py Tue Apr 23 16:19:52 2013 +0200 +++ b/mxtool/mx.py Tue Apr 23 16:55:29 2013 +0200 @@ -980,11 +980,14 @@ for arg in args: assert isinstance(arg, types.StringTypes), 'argument is not a string: ' + str(arg) + if env is None: + env = os.environ + if _opts.verbose: if _opts.very_verbose: log('Environment variables:') - for key in sorted(os.environ.keys()): - log(' ' + key + '=' + os.environ[key]) + for key in sorted(env.keys()): + log(' ' + key + '=' + env[key]) log(' '.join(args)) if timeout is None and _opts.ptimeout != 0: