changeset 18893:765bc32a4311

mx: set MX_SUBPROCESS_COMMAND environment variable in subprocess launched by mx
author Doug Simon <doug.simon@oracle.com>
date Tue, 20 Jan 2015 23:14:52 +0100
parents 9afe8fbe088c
children 203618cfd638
files mxtool/mx.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Mon Jan 19 18:00:28 2015 +0100
+++ b/mxtool/mx.py	Tue Jan 20 23:14:52 2015 +0100
@@ -1869,6 +1869,8 @@
 
     if env is None:
         env = os.environ
+        
+    env['MX_SUBPROCESS_COMMAND'] = '|'.join(args)
 
     if _opts.verbose:
         if _opts.very_verbose: