Call this if you are invoking neither `fbs` on the command line nor fbs.cmdline.main() from Python.
(project_dir)
| 15 | SETTINGS = _state.SETTINGS |
| 16 | |
| 17 | def 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 | |
| 31 | def activate_profile(profile_name): |
| 32 | """ |
nothing calls this directly
no test coverage detected