Skip to content

Commit

Permalink
Preprocess - Replace deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Mar 29, 2024
1 parent 64eee89 commit 38a9402
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions orangecontrib/text/widgets/owpreprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 38a9402

Please sign in to comment.