From b47d7d5e63612c4016c24c86eca7dfd6c966c839 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sat, 21 Jun 2014 00:46:38 +0200 Subject: [PATCH] The config filenames should be more clear (so GUI & Sources) --- configuration.cfg => GUI.cfg | 0 GUI/gui.py | 7 ++++--- tests/test_gui.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) rename configuration.cfg => GUI.cfg (100%) diff --git a/configuration.cfg b/GUI.cfg similarity index 100% rename from configuration.cfg rename to GUI.cfg diff --git a/GUI/gui.py b/GUI/gui.py index 9f4b8fb..509d74f 100644 --- a/GUI/gui.py +++ b/GUI/gui.py @@ -1,11 +1,12 @@ from Tkinter import * import os - -from configImporter import * from tkFileDialog import asksaveasfilename +from configImporter import * + + class GUI(): - def __init__(self, search, config_file='configuration.cfg', sourceloader=None, in_source=True): + def __init__(self, search, config_file='GUI.cfg', sourceloader=None, in_source=True): """Boots the window, configuration.""" if not in_source: current_dir = os.path.dirname(os.path.abspath(__file__)) diff --git a/tests/test_gui.py b/tests/test_gui.py index 5c31b80..e5e174c 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -7,7 +7,7 @@ class TestGUI(unittest.TestCase): pass def test_empty_attributes(self): - self.test_gui = gui.GUI(None, '../GUI/configuration.cfg', in_source=False) + self.test_gui = gui.GUI(None, '../GUI/GUI.cfg', in_source=False) self.test_gui.window.after(9, self.test_gui.prepare_search) self.test_gui.window.after(11, self.test_gui.window.destroy) self.test_gui.run()