mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
Locale support for en, pt and es
This commit is contained in:
@@ -2,5 +2,9 @@ import os
|
||||
|
||||
|
||||
def get_path(resource_path):
|
||||
cur_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
return cur_dir + '/resources/' + resource_path
|
||||
app_dir = get_app_dir()
|
||||
return app_dir + '/resources/' + resource_path
|
||||
|
||||
|
||||
def get_app_dir():
|
||||
return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
Reference in New Issue
Block a user