MCPcopy Create free account
hub / github.com/SmingHub/Sming / update_project_files

Function update_project_files

Tools/ide/eclipse/setup.py:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14from sming import env
15
16def update_project_files():
17 projectName = os.path.basename(os.getcwd())
18 content = Path(appPath + '/templates/.project').read_text()
19 content = content % { 'PROJECT_NAME': projectName }
20 with open(os.getcwd() + '/.project', 'w') as f:
21 f.write(content)
22 copyfile(appPath + '/templates/.cproject', os.getcwd() + '/.cproject')
23
24def main():
25 if not env['SMING_HOME'] or not env['SMING_ARCH']:

Callers 1

mainFunction · 0.85

Calls 2

PathClass · 0.85
writeMethod · 0.45

Tested by

no test coverage detected