File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1155,9 +1155,9 @@ def get_mbedlib_dir(self):
1155
1155
1156
1156
# Gets mbed tools dir (unified)
1157
1157
def get_tools_dir (self ):
1158
- mbed_os_path = self .get_os_dir ()
1159
1158
paths = []
1160
1159
# mbed-os dir identified and tools is a sub dir
1160
+ mbed_os_path = self .get_os_dir ()
1161
1161
if mbed_os_path :
1162
1162
paths .append ([mbed_os_path , 'tools' ])
1163
1163
paths .append ([mbed_os_path , 'core' , 'tools' ])
@@ -1167,9 +1167,11 @@ def get_tools_dir(self):
1167
1167
# mbed Classic deployed tools
1168
1168
paths .append ([self .path , '.temp' , 'tools' ])
1169
1169
1170
+ fl = 'make.py'
1170
1171
for p in paths :
1171
- if os .path .isdir (os .path .join (* p )):
1172
- return os .path .join (* p )
1172
+ path = os .path .join (* p )
1173
+ if os .path .isdir (path ) and os .path .isfile (os .path .join (path , fl )):
1174
+ return os .path .join (path )
1173
1175
1174
1176
return None
1175
1177
You can’t perform that action at this time.
0 commit comments