예제 #1
0
 def setUpClass(cls):
     from bgmi.config import CONFIG_FILE_PATH
     import os
     os.remove(CONFIG_FILE_PATH)
     bgmi_config.write_default_config()
     print(os.path.exists(CONFIG_FILE_PATH))
     bgmi_config.read_config()
예제 #2
0
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()
예제 #3
0
파일: test_config.py 프로젝트: luence/BGmi
 def tearDownClass():
     from bgmi.config import CONFIG_FILE_PATH
     import os
     os.remove(CONFIG_FILE_PATH)
     from bgmi.config import write_default_config
     write_default_config()