Skip to content

Commit

Permalink
Merge pull request #1053 from PrimozGodec/preprocess-remove-pkg
Browse files Browse the repository at this point in the history
[FIX] Preprocess - Replace deprecated pkg_resources
  • Loading branch information
PrimozGodec authored Mar 30, 2024
2 parents 64eee89 + 38a9402 commit cdb0901
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 cdb0901

Please sign in to comment.