File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -1303,18 +1303,15 @@ def add_tools(self, path):
1303
1303
error ("An error occurred while cloning the mbed SDK tools from \" %s\" " % mbed_sdk_tools_url )
1304
1304
1305
1305
def update_tools (self , path ):
1306
- if not os .path .exists (path ):
1307
- os .mkdir (path )
1308
- with cd (path ):
1309
- tools_dir = 'tools'
1310
- if os .path .exists (tools_dir ):
1311
- with cd (tools_dir ):
1312
- try :
1313
- action ("Updating the mbed 2.0 SDK tools..." )
1314
- repo = Repo .fromrepo ()
1315
- repo .update ()
1316
- except Exception :
1317
- error ("An error occurred while update the mbed SDK tools from \" %s\" " % mbed_sdk_tools_url )
1306
+ tools_dir = 'tools'
1307
+ if os .path .exists (os .path .join (path , tools_dir )):
1308
+ with cd (os .path .join (path , tools_dir )):
1309
+ try :
1310
+ action ("Updating the mbed 2.0 SDK tools..." )
1311
+ repo = Repo .fromrepo ()
1312
+ repo .update ()
1313
+ except Exception :
1314
+ error ("An error occurred while update the mbed SDK tools from \" %s\" " % mbed_sdk_tools_url )
1318
1315
1319
1316
def get_tools (self ):
1320
1317
mbed_tools_path = self .get_tools_dir ()
@@ -1359,6 +1356,7 @@ def get_macros(self):
1359
1356
macros = f .read ().splitlines ()
1360
1357
return macros
1361
1358
1359
+
1362
1360
def ignore_build_dir (self ):
1363
1361
build_path = os .path .join (self .path , self .build_dir )
1364
1362
if not os .path .exists (build_path ):
You can’t perform that action at this time.
0 commit comments