HiddenEye-Legacy/Defs/Configurations.py
sTiKyt 35d295533d Some Defs files
New - Files(packages) for some useful defs.
2018-10-28 04:42:24 +02:00

16 lines
402 B
Python

#Primitive config works
import configparser
def createConfig(path = "Settings.ini"):
config = configparser.ConfigParser()
config.add_section("Settings")
config.set("Settings", "Language", "en")
with open(path, 'w') as configFile:
config.write(configFile)
def readConfig(path = "Settings.ini"):
config = configparser.ConfigParser()
config.read(path)
return config