Skip to content

Commit 4a8754d

Browse files
authored
Merge pull request #281 from fooof-tools/pkg
[MNT] - Drop use of package_resources
2 parents e89c033 + a3e2953 commit 4a8754d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

fooof/tests/settings.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"""Settings for testing fooof."""
22

33
import os
4-
import pkg_resources as pkg
4+
from pathlib import Path
55

66
###################################################################################################
77
###################################################################################################
88

99
# Path Settings
10-
BASE_TEST_FILE_PATH = pkg.resource_filename(__name__, 'test_files')
11-
TEST_DATA_PATH = os.path.join(BASE_TEST_FILE_PATH, 'data')
12-
TEST_REPORTS_PATH = os.path.join(BASE_TEST_FILE_PATH, 'reports')
13-
TEST_PLOTS_PATH = os.path.join(BASE_TEST_FILE_PATH, 'plots')
10+
TESTS_PATH = Path(os.path.abspath(os.path.dirname(__file__)))
11+
BASE_TEST_FILE_PATH = TESTS_PATH / 'test_files'
12+
TEST_DATA_PATH = BASE_TEST_FILE_PATH / 'data'
13+
TEST_REPORTS_PATH = BASE_TEST_FILE_PATH / 'reports'
14+
TEST_PLOTS_PATH = BASE_TEST_FILE_PATH / 'plots'

0 commit comments

Comments
 (0)