Skip to content

Commit 3591468

Browse files
committed
Moved settings file out of source control folder
1 parent 4456022 commit 3591468

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mbed/mbed.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ def scm(cls):
222222
@staticclass
223223
class Hg(object):
224224
name = 'hg'
225-
store = '.hg'
226225

227226
def isurl(url):
228227
m_url = re.match(regex_url_ref, url.strip().replace('\\', '/'))
@@ -406,7 +405,6 @@ def unignore(repo, file):
406405
@staticclass
407406
class Git(object):
408407
name = 'git'
409-
store = '.git'
410408

411409
def isurl(url):
412410
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
11861184
error('The mbed-os codebase and tools were not found.', -1)
11871185

11881186
repo = Repo.fromrepo()
1189-
file = os.path.join(repo.scm.store, 'mbed')
1187+
file = os.path.join('.mbed.settings')
11901188

11911189
target = mcu if mcu else get_cfg(file, 'TARGET')
11921190
if target is None:
@@ -1310,7 +1308,7 @@ def export(ide=None, mcu=None):
13101308

13111309
args = remainder
13121310
repo = Repo.fromrepo()
1313-
file = os.path.join(repo.scm.store, 'mbed')
1311+
file = os.path.join('.mbed.settings')
13141312

13151313
target = mcu if mcu else get_cfg(file, 'TARGET')
13161314
if target is None:
@@ -1338,7 +1336,7 @@ def target(name=None):
13381336
root_path = Repo.findroot(os.getcwd())
13391337
with cd(root_path):
13401338
repo = Repo.fromrepo()
1341-
file = os.path.join(repo.scm.store, 'mbed')
1339+
file = os.path.join('.mbed.settings')
13421340
if name is None:
13431341
name = get_cfg(file, 'TARGET')
13441342
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):
13531351
root_path = Repo.findroot(os.getcwd())
13541352
with cd(root_path):
13551353
repo = Repo.fromrepo()
1356-
file = os.path.join(repo.scm.store, 'mbed')
1354+
file = os.path.join('.mbed.settings')
13571355
if name is None:
13581356
name = get_cfg(file, 'TOOLCHAIN')
13591357
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

Comments
 (0)