Onionr/scripts/enable-dev-config.py

24 lines
592 B
Python
Raw Normal View History

2020-02-02 06:55:39 +00:00
#!/usr/bin/env python3
"""Enable dev default config"""
import json
input("enter to continue") # hack to avoid vscode term input
2020-02-02 06:55:39 +00:00
conf = json.load(open('static-data/default_config.json', 'r'))
conf['general']['security_level'] = int(input("Security level:"))
2020-02-02 06:55:39 +00:00
conf['general']['dev_mode'] = True
conf['general']['random_bind_ip'] = False
conf['onboarding']['done'] = True
2021-02-22 07:44:17 +00:00
conf['log']['file']['remove_on_exit'] = False
conf['ui']['animated_background'] = False
2021-02-21 02:29:00 +00:00
conf['runtests']['skip_slow'] = True
2021-02-22 07:44:17 +00:00
2020-02-02 06:55:39 +00:00
json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4)