58
58
"*.htm" ,
59
59
60
60
# Settings files
61
+ ".mbed" ,
61
62
"*.settings" ,
62
63
"mbed_settings.py" ,
63
64
@@ -222,7 +223,6 @@ def scm(cls):
222
223
@staticclass
223
224
class Hg (object ):
224
225
name = 'hg'
225
- store = '.hg'
226
226
227
227
def isurl (url ):
228
228
m_url = re .match (regex_url_ref , url .strip ().replace ('\\ ' , '/' ))
@@ -406,7 +406,6 @@ def unignore(repo, file):
406
406
@staticclass
407
407
class Git (object ):
408
408
name = 'git'
409
- store = '.git'
410
409
411
410
def isurl (url ):
412
411
m_url = re .match (regex_url_ref , url .strip ().replace ('\\ ' , '/' ))
@@ -1186,7 +1185,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1186
1185
error ('The mbed-os codebase and tools were not found.' , - 1 )
1187
1186
1188
1187
repo = Repo .fromrepo ()
1189
- file = os .path .join (repo . scm . store , ' mbed' )
1188
+ file = os .path .join ('. mbed' )
1190
1189
1191
1190
target = mcu if mcu else get_cfg (file , 'TARGET' )
1192
1191
if target is None :
@@ -1310,7 +1309,7 @@ def export(ide=None, mcu=None):
1310
1309
1311
1310
args = remainder
1312
1311
repo = Repo .fromrepo ()
1313
- file = os .path .join (repo . scm . store , ' mbed' )
1312
+ file = os .path .join ('. mbed' )
1314
1313
1315
1314
target = mcu if mcu else get_cfg (file , 'TARGET' )
1316
1315
if target is None :
@@ -1338,7 +1337,7 @@ def target(name=None):
1338
1337
root_path = Repo .findroot (os .getcwd ())
1339
1338
with cd (root_path ):
1340
1339
repo = Repo .fromrepo ()
1341
- file = os .path .join (repo . scm . store , ' mbed' )
1340
+ file = os .path .join ('. mbed' )
1342
1341
if name is None :
1343
1342
name = get_cfg (file , 'TARGET' )
1344
1343
action (('The default target for program "%s" is "%s"' % (repo .name , name )) if name else 'No default target is specified for program "%s"' % repo .name )
@@ -1353,7 +1352,7 @@ def toolchain(name=None):
1353
1352
root_path = Repo .findroot (os .getcwd ())
1354
1353
with cd (root_path ):
1355
1354
repo = Repo .fromrepo ()
1356
- file = os .path .join (repo . scm . store , ' mbed' )
1355
+ file = os .path .join ('. mbed' )
1357
1356
if name is None :
1358
1357
name = get_cfg (file , 'TOOLCHAIN' )
1359
1358
action (('The default toolchain for program "%s" is "%s"' % (repo .name , name )) if name else 'No default toolchain is specified for program "%s"' % repo .name )
0 commit comments