mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
35d295533d
New - Files(packages) for some useful defs.
16 lines
402 B
Python
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
|