Skip to content

Commit

Permalink
test: Use Python 3.9+ API to get current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Nov 4, 2024
1 parent 19ee4f3 commit c3429d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pelican/plugins/sitemap/test_sitemap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import importlib.resources
from pathlib import Path
from shutil import rmtree
from tempfile import mkdtemp
Expand All @@ -8,7 +9,7 @@

from . import sitemap

BASE_DIR = Path(__file__).parent
BASE_DIR = importlib.resources.files(__package__)
TEST_DATA = BASE_DIR / "test_data"


Expand Down

0 comments on commit c3429d9

Please sign in to comment.