--- a/eric6/E5Network/E5TldExtractor.py Thu Sep 24 19:51:19 2020 +0200 +++ b/eric6/E5Network/E5TldExtractor.py Sat Sep 26 10:58:18 2020 +0200 @@ -12,15 +12,13 @@ # Copyright (C) 2014 Razi Alavizadeh <s.r.alavizadeh@gmail.com> # - import collections +import os from PyQt5.QtCore import QObject, QUrl, QFile, QFileInfo, QRegExp, qWarning from E5Gui import E5MessageBox -from .data import tld_rc # __IGNORE_WARNING__ - class E5TldHostParts(object): """ @@ -249,8 +247,7 @@ @return default search paths for the TLD data file @rtype list of str """ - # TODO: replace this with path to our data directory to remove .qrc - return [":"] + return [os.path.join(os.path.dirname(__file__), "data")] def getTldDownloadUrl(self): """ @@ -434,7 +431,6 @@ """ return host.lower() - # TODO: remove this part and delete 'test_psl.txt' ################################################################# ## Methods below are for testing purposes #################################################################