mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 20:54:15 +02:00
Locale path fix
This commit is contained in:
@@ -8,9 +8,6 @@ app_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||||||
def get_path(resource_path):
|
def get_path(resource_path):
|
||||||
|
|
||||||
if os.path.exists(local_resource_path):
|
if os.path.exists(local_resource_path):
|
||||||
final_path = local_resource_path + '/' + resource_path
|
return local_resource_path + '/' + resource_path
|
||||||
else:
|
else:
|
||||||
final_path = app_dir + '/resources/' + resource_path
|
return app_dir + '/resources/' + resource_path
|
||||||
|
|
||||||
print(final_path)
|
|
||||||
return final_path
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ def get_locale_keys():
|
|||||||
if current_locale:
|
if current_locale:
|
||||||
current_locale = current_locale[0]
|
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 + '/*'):
|
for locale_file in glob.glob(locale_dir + '/*'):
|
||||||
name = locale_file.split('/')[-1]
|
name = locale_file.split('/')[-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user