mirror of https://github.com/ARMmbed/mbed-os.git
Allow toolchain paths to be wrapped in quotes
parent
71c84e851f
commit
632cd9d065
|
@ -88,8 +88,10 @@ _ENV_PATHS = ['ARM_PATH', 'GCC_ARM_PATH', 'IAR_PATH', 'ARMC6_PATH']
|
||||||
|
|
||||||
for _n in _ENV_PATHS:
|
for _n in _ENV_PATHS:
|
||||||
if getenv('MBED_'+_n):
|
if getenv('MBED_'+_n):
|
||||||
if exists(getenv('MBED_'+_n)):
|
# It's common to provide paths with quotes for certain OSes
|
||||||
globals()[_n] = getenv('MBED_'+_n)
|
env_path = getenv('MBED_'+_n).strip("\"'")
|
||||||
|
if exists(env_path):
|
||||||
|
globals()[_n] = env_path
|
||||||
else:
|
else:
|
||||||
print("WARNING: MBED_%s set as environment variable but doesn't"
|
print("WARNING: MBED_%s set as environment variable but doesn't"
|
||||||
" exist" % _n)
|
" exist" % _n)
|
||||||
|
|
Loading…
Reference in New Issue