Skip to content

Commit fcc6f56

Browse files
Merge pull request #114 from ARMmbed/devel_cygwin
Replace os.mkdir() with recursive directory creation function
2 parents 85ea89c + e9d1ac2 commit fcc6f56

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mbed_lstools/lstools_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ def mbedls_home_dir_init(self):
209209
@details Create '.mbed-ls' sub-directory in current user $HOME directory
210210
"""
211211
if not os.path.isdir(os.path.join(self.HOME_DIR, self.MBEDLS_HOME_DIR)):
212-
os.mkdir(os.path.join(self.HOME_DIR, self.MBEDLS_HOME_DIR))
212+
try:
213+
os.makedirs(os.path.join(self.HOME_DIR, self.MBEDLS_HOME_DIR))
214+
except os.error as e:
215+
self.err(str(e))
213216

214217
def mbedls_get_mocks(self):
215218
"""! Load existing mocking configuration from current user $HOME directory

mbed_lstools/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def get_mbedls_version():
168168

169169
mbeds.DEBUG_FLAG = opts.debug
170170
mbeds.debug(__name__, "mbed-ls ver. " + get_mbedls_version())
171+
mbeds.debug(__name__, "host: " + str((mbed_lstools_os_info())))
171172

172173
# Load extra mock configuration
173174
mbeds.mbedls_get_mocks()

0 commit comments

Comments
 (0)