@@ -222,7 +222,6 @@ def scm(cls):
222
222
@staticclass
223
223
class Hg (object ):
224
224
name = 'hg'
225
- store = '.hg'
226
225
227
226
def isurl (url ):
228
227
m_url = re .match (regex_url_ref , url .strip ().replace ('\\ ' , '/' ))
@@ -406,7 +405,6 @@ def unignore(repo, file):
406
405
@staticclass
407
406
class Git (object ):
408
407
name = 'git'
409
- store = '.git'
410
408
411
409
def isurl (url ):
412
410
m_url = re .match (regex_url_ref , url .strip ().replace ('\\ ' , '/' ))
@@ -1186,7 +1184,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1186
1184
error ('The mbed-os codebase and tools were not found.' , - 1 )
1187
1185
1188
1186
repo = Repo .fromrepo ()
1189
- file = os .path .join (repo . scm . store , ' mbed' )
1187
+ file = os .path .join ('. mbed.settings ' )
1190
1188
1191
1189
target = mcu if mcu else get_cfg (file , 'TARGET' )
1192
1190
if target is None :
@@ -1310,7 +1308,7 @@ def export(ide=None, mcu=None):
1310
1308
1311
1309
args = remainder
1312
1310
repo = Repo .fromrepo ()
1313
- file = os .path .join (repo . scm . store , ' mbed' )
1311
+ file = os .path .join ('. mbed.settings ' )
1314
1312
1315
1313
target = mcu if mcu else get_cfg (file , 'TARGET' )
1316
1314
if target is None :
@@ -1338,7 +1336,7 @@ def target(name=None):
1338
1336
root_path = Repo .findroot (os .getcwd ())
1339
1337
with cd (root_path ):
1340
1338
repo = Repo .fromrepo ()
1341
- file = os .path .join (repo . scm . store , ' mbed' )
1339
+ file = os .path .join ('. mbed.settings ' )
1342
1340
if name is None :
1343
1341
name = get_cfg (file , 'TARGET' )
1344
1342
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 +1351,7 @@ def toolchain(name=None):
1353
1351
root_path = Repo .findroot (os .getcwd ())
1354
1352
with cd (root_path ):
1355
1353
repo = Repo .fromrepo ()
1356
- file = os .path .join (repo . scm . store , ' mbed' )
1354
+ file = os .path .join ('. mbed.settings ' )
1357
1355
if name is None :
1358
1356
name = get_cfg (file , 'TOOLCHAIN' )
1359
1357
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