File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- from os .path import dirname , abspath , join
1
+ from os .path import dirname , abspath , join , exists
2
2
3
3
from tools .utils import json_file_to_dict
4
4
from tools .targets import TARGET_MAP
@@ -28,12 +28,14 @@ def get_config_path(conf_name, target_name):
28
28
else :
29
29
return None
30
30
31
- def get_default_config (target_name ):
31
+ def get_default_config (source_dir , target_name ):
32
32
if target_name in TARGET_CONFIGS :
33
33
config_name = TARGET_CONFIGS [target_name ]['default_test_configuration' ]
34
34
if config_name == "NONE" :
35
35
return None
36
36
return join (CONFIG_DIR , CONFIG_MAP [config_name ])
37
+ elif any (exists (join (dir or "." , "mbed_app.json" )) for dir in source_dir ):
38
+ config = None
37
39
elif (target_name in TARGET_MAP and 'LWIP' in TARGET_MAP [target_name ].features ):
38
40
return join (CONFIG_DIR , CONFIG_MAP ["ETHERNET" ])
39
41
else :
You can’t perform that action at this time.
0 commit comments