We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb9339 commit 46596bbCopy full SHA for 46596bb
mbed/mbed.py
@@ -1122,8 +1122,13 @@ def get_os_dir(self):
1122
# Gets mbed tools dir (unified)
1123
def get_tools_dir(self):
1124
mbed_os_path = self.get_os_dir()
1125
+ # mbed-os dir identified and tools is a sub dir
1126
if mbed_os_path and os.path.isdir(os.path.join(mbed_os_path, 'tools')):
1127
return os.path.join(mbed_os_path, 'tools')
1128
+ # mbed-os not identified but tools found under cwd/tools
1129
+ elif os.path.isdir(os.path.join(self.path, 'tools')):
1130
+ return os.path.join(self.path, 'tools')
1131
+ # mbed Classic deployed tools
1132
elif os.path.isdir(os.path.join(self.path, '.temp', 'tools')):
1133
return os.path.join(self.path, '.temp', 'tools')
1134
else:
0 commit comments