1
0
Fork 0
mirror of synced 2024-06-27 02:30:31 +12:00
Rare/Rare/utils/legendaryConfig.py

15 lines
288 B
Python
Raw Normal View History

2021-02-10 23:48:25 +13:00
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)