Skip to content

Commit

Permalink
Moved and renamed the language list file
Browse files Browse the repository at this point in the history
  • Loading branch information
elshize committed Sep 21, 2017
1 parent c219710 commit d923ab9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions qutebrowser/browser/webengine/spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import os
from urllib.request import urlretrieve
from qutebrowser import basedir

from PyQt5.QtCore import QLibraryInfo

Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit d923ab9

Please sign in to comment.