MCPcopy
hub / github.com/mherrmann/fbs / init

Function init

fbs/__init__.py:17–29  ·  view source on GitHub ↗

Call this if you are invoking neither `fbs` on the command line nor fbs.cmdline.main() from Python.

(project_dir)

Source from the content-addressed store, hash-verified

15SETTINGS = _state.SETTINGS
16
17def init(project_dir):
18 """
19 Call this if you are invoking neither `fbs` on the command line nor
20 fbs.cmdline.main() from Python.
21 """
22 if sys.version_info[0] != 3 or sys.version_info[1] not in (5, 6):
23 raise FbsError(
24 'The free version of fbs only supports Python 3.5 and 3.6.\n'
25 'Please obtain fbs Pro from https://build-system.fman.io/pro.'
26 )
27 SETTINGS.update(get_core_settings(abspath(project_dir)))
28 for profile in get_default_profiles():
29 activate_profile(profile)
30
31def activate_profile(profile_name):
32 """

Callers

nothing calls this directly

Calls 4

FbsErrorClass · 0.90
get_core_settingsFunction · 0.90
get_default_profilesFunction · 0.90
activate_profileFunction · 0.85

Tested by

no test coverage detected