From 7a21af70d2cbd5d1d77296ffb90223b6fe2d8f52 Mon Sep 17 00:00:00 2001 From: Richard Acosta Date: Mon, 25 Aug 2014 13:25:44 -0700 Subject: [PATCH 1/3] the language import would break on linux if the path had any capitalization in the path --- gooey/i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gooey/i18n.py b/gooey/i18n.py index af42808..358bd8f 100644 --- a/gooey/i18n.py +++ b/gooey/i18n.py @@ -18,7 +18,7 @@ _DEFAULT_DIR = os.path.join(os.path.dirname(__file__), 'languages') def get_path(language): ''' Returns the full path to the language file ''' - filename = language + '.json' + filename = language.lower() + '.json' lang_file_path = os.path.join(_DEFAULT_DIR, filename) if not os.path.exists(lang_file_path): raise IOError('Could not find {} language file'.format(language)) @@ -28,7 +28,7 @@ def get_path(language): def load(filepath): ''' Open and return the supplied json file ''' try: - with open(filepath.lower(), 'rb') as f: + with open(filepath, 'rb') as f: return json.load(f) except IOError: raise IOError('Language file not found. Make sure that your ', From e18934364d0a16c2ffe33633489d4bbc00e812b9 Mon Sep 17 00:00:00 2001 From: Richard Acosta Date: Mon, 25 Aug 2014 14:23:36 -0700 Subject: [PATCH 2/3] improper capitalization in import --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index 9b2b136..7e31fea 100644 --- a/test.py +++ b/test.py @@ -4,7 +4,7 @@ Created on Feb 9, 2014 @author: Chris ''' -from gooey import gooey +from gooey import Gooey if __name__ == '__main__': pass \ No newline at end of file From ad6ef7c7dc40be68cf646339a7f98e2e5d9818bb Mon Sep 17 00:00:00 2001 From: Richard Acosta Date: Mon, 25 Aug 2014 16:55:26 -0700 Subject: [PATCH 3/3] Fixing error of 'icon.ico' not being present in filesystem when running mockapplication --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e1f1881..1ece6bb 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( author='Chris Kiehl', author_email='audionautic@gmail.com', package_data={ - '': ['*.txt', '*.png', '*.jpg', '*.json'] + '': ['*.txt', '*.png', '*.jpg', '*.json', '*.ico'] }, packages=find_packages(), url='http://pypi.python.org/pypi/Gooey/',