Skip to content

Commit eae8f9d

Browse files
Merge pull request #626 from daid/patch-1
Update mbed-cli to allow different configured path for mbed-os
2 parents ca46b42 + bec879f commit eae8f9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mbed/mbed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,8 @@ def unset_root(self, path=None):
13841384

13851385
# Gets mbed OS dir (unified)
13861386
def get_os_dir(self):
1387+
if self.get_cfg('MBED_OS_DIR', None) is not None:
1388+
return self.get_cfg('MBED_OS_DIR')
13871389
if os.path.isdir(os.path.join(self.path, 'mbed-os')):
13881390
return os.path.join(self.path, 'mbed-os')
13891391
elif self.name == 'mbed-os':

0 commit comments

Comments
 (0)