Mercurial > hg > truffle
comparison mxtool/mx.py @ 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 | c446d00f2cdf |
children | 16ffeae58772 |
comparison
equal
deleted
inserted
replaced
18886:9afe8fbe088c | 18893:765bc32a4311 |
---|---|
1867 for arg in args: | 1867 for arg in args: |
1868 assert isinstance(arg, types.StringTypes), 'argument is not a string: ' + str(arg) | 1868 assert isinstance(arg, types.StringTypes), 'argument is not a string: ' + str(arg) |
1869 | 1869 |
1870 if env is None: | 1870 if env is None: |
1871 env = os.environ | 1871 env = os.environ |
1872 | |
1873 env['MX_SUBPROCESS_COMMAND'] = '|'.join(args) | |
1872 | 1874 |
1873 if _opts.verbose: | 1875 if _opts.verbose: |
1874 if _opts.very_verbose: | 1876 if _opts.very_verbose: |
1875 log('Environment variables:') | 1877 log('Environment variables:') |
1876 for key in sorted(env.keys()): | 1878 for key in sorted(env.keys()): |