Skip to content

Commit 2dfbe4c

Browse files
committed
Fixed detection of programs that need external tools but do not have .bld file (e.g. Microbit projects)
1 parent e29109d commit 2dfbe4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ def get_env(self):
12191219
def post_action(self):
12201220
mbed_tools_path = self.get_tools_dir()
12211221

1222-
if not mbed_tools_path and self.is_classic:
1222+
if not mbed_tools_path and (self.is_classic or os.path.exists(os.path.join(self.path, Cfg.file))):
12231223
self.add_tools(os.path.join(self.path, '.temp'))
12241224
mbed_tools_path = self.get_tools_dir()
12251225

0 commit comments

Comments
 (0)