Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

avoid using deprecated pkg_resources #93

Merged
merged 2 commits into from
Mar 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/cellfinder_core/tools/source_files.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from pkg_resources import resource_filename
from pathlib import Path


def source_config_cellfinder():
return resource_filename("cellfinder_core", "config/cellfinder.conf")
return Path(__file__).parent.parent / "config" / "cellfinder.conf"


def source_custom_config_cellfinder():
return resource_filename(
"cellfinder_core", "config/cellfinder.conf.custom"
)
return Path(__file__).parent.parent / "config" / "cellfinder.conf.custom"