From 38a94029850c9edff9d493ca9b2c2eff0c6c9fcb Mon Sep 17 00:00:00 2001 From: PrimozGodec Date: Fri, 29 Mar 2024 14:42:09 +0100 Subject: [PATCH] Preprocess - Replace deprecated pkg_resources --- orangecontrib/text/widgets/owpreprocess.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/orangecontrib/text/widgets/owpreprocess.py b/orangecontrib/text/widgets/owpreprocess.py index 8f939612b..fc973e33c 100644 --- a/orangecontrib/text/widgets/owpreprocess.py +++ b/orangecontrib/text/widgets/owpreprocess.py @@ -2,7 +2,6 @@ from types import SimpleNamespace import os import random -import pkg_resources from AnyQt.QtCore import Qt, pyqtSignal, QModelIndex from AnyQt.QtWidgets import QComboBox, QButtonGroup, QLabel, QCheckBox, \ @@ -35,7 +34,7 @@ def icon_path(basename): - return pkg_resources.resource_filename(__name__, "icons/" + basename) + return os.path.join(os.path.dirname(__file__), "icons", basename) class Result(SimpleNamespace):