def setup(): need_to_init = False if not os.path.exists(BGMI_PATH): need_to_init = True print_warning('BGMI_PATH %s does not exist, installing' % BGMI_PATH) create_dir() init_db() if need_to_init: install_crontab()
def setup() -> None: need_to_init = False if not os.path.exists(BGMI_PATH): need_to_init = True print_warning(f"BGMI_PATH {BGMI_PATH} does not exist, installing") create_dir() init_db() if need_to_init: install_crontab() write_default_config()