From 1daf3eb5e218269811b4e6912298d921224177bd Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 17 Jun 2019 16:03:28 -0300 Subject: [PATCH] Locale path fix --- fpakman/core/resource.py | 7 ++----- fpakman/core/util.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/fpakman/core/resource.py b/fpakman/core/resource.py index ea210ab9..efcb482e 100755 --- a/fpakman/core/resource.py +++ b/fpakman/core/resource.py @@ -8,9 +8,6 @@ app_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def get_path(resource_path): if os.path.exists(local_resource_path): - final_path = local_resource_path + '/' + resource_path + return local_resource_path + '/' + resource_path else: - final_path = app_dir + '/resources/' + resource_path - - print(final_path) - return final_path + return app_dir + '/resources/' + resource_path diff --git a/fpakman/core/util.py b/fpakman/core/util.py index 9173d7f2..f66016ca 100644 --- a/fpakman/core/util.py +++ b/fpakman/core/util.py @@ -12,7 +12,7 @@ def get_locale_keys(): if current_locale: current_locale = current_locale[0] - locale_dir = resource.get_path('/locale') + locale_dir = resource.get_path('locale') for locale_file in glob.glob(locale_dir + '/*'): name = locale_file.split('/')[-1]