This commit is contained in:
BarsTiger
2022-01-24 13:17:49 +02:00
parent e5e216ca75
commit cce55d434a
4 changed files with 35 additions and 27 deletions

View File

@@ -2,20 +2,21 @@ import json
import requests
import os
import hashlib
import modules.vars as horsy_vars
def add_to_cfg(key):
with open('config.cfg') as f:
with open(horsy_vars.horsypath + 'config.cfg') as f:
config = json.load(f)
config['vt-key'] = key
with open('config.cfg', 'w') as f:
with open(horsy_vars.horsypath + 'config.cfg', 'w') as f:
json.dump(config, f)
def get_key():
with open('config.cfg') as f:
with open(horsy_vars.horsypath + 'config.cfg') as f:
config = json.load(f)
try: