Skip to content

Commit

Permalink
chore: refactor: replace deprecated pkg_resources API
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Feb 4, 2025
1 parent 02f6f92 commit 88db9f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eox_theming/theming/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
import re

import pkg_resources
import importlib.resources
from django.conf import settings
from mako.exceptions import TopLevelLookupException

Expand Down Expand Up @@ -91,7 +91,7 @@ def add_lookup(namespace, directory, package=None, prepend=False):
encoding_errors='replace',
)
if package:
directory = pkg_resources.resource_filename(package, directory)
directory = importlib.resources.files(package) / directory
templates.add_directory(directory, prepend=prepend)


Expand Down

0 comments on commit 88db9f8

Please sign in to comment.