1
0
Fork 0
mirror of synced 2024-06-19 02:54:45 +12:00
Rare/Rare/utils/legendaryConfig.py
2021-02-10 11:48:25 +01:00

15 lines
288 B
Python

import configparser
import os
from legendary.lfs.lgndry import LGDLFS
lgd = LGDLFS()
def get_config() -> {}:
return lgd.config
def set_config(new_config: {}):
lgd.config = new_config
with open(os.path.join(lgd.path, 'config.ini'), "w") as cf:
lgd.config.write(cf)