cancervariants / cancervariants/therapy-normalization
use `pkgutil` for relative paths to data files
Open
priority:low
technical debt
- Dominant language
- Python
- Stars
- 15
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Branching from `__file__` limits some portability edge cases:
https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package/58941536#58941536
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the package data-file paths that are derived from __file__, then read the linked pkgutil guidance for the portability issue. Done means those resource lookups no longer depend on the current __file__ approach and still work across the supported packaging environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100