34 lines
820 B
Python
34 lines
820 B
Python
import massedit
|
|
import credentials
|
|
|
|
import config
|
|
|
|
import utilities_script as utilities
|
|
|
|
class Config_Management_Module():
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.configNames = ['config.py']
|
|
|
|
def main(self):
|
|
print("[Config Management Module]> test")
|
|
print(self.doesConfigExist("twitch_module"))
|
|
self.editConfig('twitch_module: bool = False', 'twitch_module: bool = True')
|
|
|
|
def changeConfig(self, configName):
|
|
pass
|
|
|
|
def doesConfigExist(self, configName):
|
|
doesExist = False
|
|
|
|
return doesExist
|
|
|
|
def editConfig(self, configName, newVar):
|
|
massedit.edit_files(self.configNames, ["re.sub('" + configName + "','" + newVar + "', line)"])
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
testModule = Config_Management_Module()
|
|
|
|
testModule.main() |