Skip to content

Commit bec879f

Browse files
authored
Update mbed-cli to allow different configured path for mbed-os
In not every project structure it makes sense to have the mbed-os directory at the root of your project structure. This change allows you to configure a custom path for the mbed-os directory in your .mbed configuration
1 parent ca46b42 commit bec879f

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)