From 90b37d6861ae674c6cacaed629d59e01b19b385b Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 21 Aug 2020 20:51:28 +1000 Subject: [PATCH] bad copy paste job from one of my old projects whoops --- functions.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/functions.py b/functions.py index e9dd55b..ce13be2 100644 --- a/functions.py +++ b/functions.py @@ -21,18 +21,3 @@ def msgBox(title, text, form = Gtk.MessageType.WARNING): def rmatch(pattern, string): return re.match(pattern, string) != None - -def readSettings(): - global settings - if not path.isfile(settingsLocation + "config.json"): - os.makedirs(settingsLocation, 0o755) - open(settingsLocation + "config.dat", 'x') - try: - settings = pickle.load(open(settingsLocation + "config.dat", 'rb')) - except: - MsgBox("Error", "Failed to load settings. The default settings will be used instead.") - settings = {"setting":"value", "save database": True} #indent me when releasing! - -def writeSettings(): - global settings - pickle.dump(settings, open(settingsLocation + "config.dat", 'wb'))