Look for mbed_app.json in root dir if no --app-config is provided

pull/5559/head
Jenny Plunkett 2017-11-22 15:37:05 -06:00
parent 2e1c2a1cdf
commit d438324d31
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ if __name__ == '__main__':
args_error(parser, "argument --test-config contains invalid path or identifier")
elif not options.app_config:
config = TestConfig.get_default_config(mcu)
if os.path.exists(os.path.abspath(os.path.join("mbed_app.json", ".."))):
config = "mbed_app.json"
else:
config = options.app_config