From aeb7366161a889f6cd7de371d54bfe6cb80d55b7 Mon Sep 17 00:00:00 2001 From: Harmen Prins Date: Wed, 11 Jun 2014 16:37:58 +0200 Subject: [PATCH] Changed path to config file --- GUI/{config.cfg => gui.cfg} | 0 GUI/gui.py | 3 +-- __init__.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) rename GUI/{config.cfg => gui.cfg} (100%) diff --git a/GUI/config.cfg b/GUI/gui.cfg similarity index 100% rename from GUI/config.cfg rename to GUI/gui.cfg diff --git a/GUI/gui.py b/GUI/gui.py index 5b07da7..726b8de 100644 --- a/GUI/gui.py +++ b/GUI/gui.py @@ -4,7 +4,6 @@ import tkMessageBox from fourmi import search from utils.sourceloader import SourceLoader - class ConfigImporter(): def __init__(self, filename): """Read the filename into the parser.""" @@ -29,7 +28,7 @@ class ConfigImporter(): class GUI(): def __init__(self): """Boots the window, configuration.""" - self.configurator = ConfigImporter('config.cfg') + self.configurator = ConfigImporter(['GUI/gui.cfg','gui.cfg']) self.finish_with_search = False self.values = {} self.window, self.variables = self.generate_window(self.load_common_attributes(), self.load_output_types()) diff --git a/__init__.py b/__init__.py index 139597f..e4ae898 100644 --- a/__init__.py +++ b/__init__.py @@ -1,2 +1,2 @@ - +from GUI import gui