Moved and renamed the language list file

This commit is contained in:
Michal Siedlaczek 2017-08-12 10:19:59 -07:00
parent c2197102a3
commit d923ab9ae5
2 changed files with 3 additions and 3 deletions

View File

@ -21,6 +21,7 @@
import os
from urllib.request import urlretrieve
from qutebrowser import basedir
from PyQt5.QtCore import QLibraryInfo
@ -81,9 +82,8 @@ def get_dictionary_dir():
def get_language_list_file():
"""Return the path to the file with the list of all available languages."""
root_dir = os.path.dirname(os.path.abspath(__file__))
# TODO: not sure how to determine the following path 'the right way'
return os.path.join(root_dir, '../../../', 'misc', 'lang_list')
package_dir = os.path.dirname(os.path.abspath(__file__))
return os.path.join(package_dir, 'langs.tsv')
def get_available_languages():