Beispiel #1
0
    if not is_sim_profile_selected():
        validate_path_existence(get_ref_bsp_abs_path(), 'BF BSP')
    if get_selected_profile_name() in [
            constants.stratum_sim_profile_name,
            constants.stratum_hw_profile_name
    ]:
        validate_path_existence(get_stratum_home_absolute(), 'Stratum')


if __name__ == '__main__':
    profile_name = get_selected_profile_name()

    do_basic_path_validation(profile_name)

    if profile_name in [
            constants.stratum_hw_profile_name,
            constants.stratum_sim_profile_name
    ]:
        load_stratum_profile()
    elif profile_name in [
            constants.sde_sim_profile_name, constants.sde_hw_profile_name
    ]:
        load_bf_sde_profile()
    elif profile_name in [
            constants.sal_sim_profile_name, constants.sal_hw_profile_name
    ]:
        load_sal_profile()
    else:
        print('Invalid profile name {} provided in settings.yaml'.format(
            profile_name))
Beispiel #2
0
def load_stratum_profile():
    load_sal_profile()
    take_user_input()