fix: lang/ path not found
This commit is contained in:
parent
1af21a66f8
commit
f96c9f7f89
3
util.py
3
util.py
@ -432,7 +432,8 @@ def verify_password(password, salted_hash, salt):
|
|||||||
|
|
||||||
|
|
||||||
def get_supported_language():
|
def get_supported_language():
|
||||||
lang_files = os.listdir('lang')
|
root_dir = os.path.dirname(__file__)
|
||||||
|
lang_files = os.listdir(os.path.join(root_dir, 'lang'))
|
||||||
lang_list = []
|
lang_list = []
|
||||||
for lang_file in lang_files:
|
for lang_file in lang_files:
|
||||||
match = re.search("([a-z]{2}_[A-Z]{2})\.json", lang_file)
|
match = re.search("([a-z]{2}_[A-Z]{2})\.json", lang_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user