File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
"""Settings for testing fooof."""
2
2
3
3
import os
4
- import pkg_resources as pkg
4
+ from pathlib import Path
5
5
6
6
###################################################################################################
7
7
###################################################################################################
8
8
9
9
# 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'
You can’t perform that action at this time.
0 commit comments