Mercurial > hg > truffle
comparison mx/mx_graal.py @ 21642:57912478d94d
fixed pylint issue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 01 Jun 2015 18:13:48 +0200 |
parents | 11f68b116a07 |
children | 8d0c2aabfc2d |
comparison
equal
deleted
inserted
replaced
21641:678303c93e69 | 21642:57912478d94d |
---|---|
124 vm = mx.get_env('DEFAULT_VM') | 124 vm = mx.get_env('DEFAULT_VM') |
125 envPath = join(_graal_home, 'mx', 'env') | 125 envPath = join(_graal_home, 'mx', 'env') |
126 if vm and 'graal' in vm: | 126 if vm and 'graal' in vm: |
127 if exists(envPath): | 127 if exists(envPath): |
128 with open(envPath) as fp: | 128 with open(envPath) as fp: |
129 if ('DEFAULT_VM=' + vm) in fp.read(): | 129 if 'DEFAULT_VM=' + vm in fp.read(): |
130 mx.log('Please update the DEFAULT_VM value in ' + envPath + ' to replace "graal" with "jvmci"') | 130 mx.log('Please update the DEFAULT_VM value in ' + envPath + ' to replace "graal" with "jvmci"') |
131 vm = vm.replace('graal', 'jvmci') | 131 vm = vm.replace('graal', 'jvmci') |
132 if vm is None: | 132 if vm is None: |
133 if not mx.is_interactive(): | 133 if not mx.is_interactive(): |
134 mx.abort('Need to specify VM with --vm option or DEFAULT_VM environment variable') | 134 mx.abort('Need to specify VM with --vm option or DEFAULT_VM environment variable') |