smart-on-fhir / cumulus-library

https://docs.smarthealthit.org/cumulus/library/
Apache License 2.0
2 stars 0 forks source link

Use python import machinery to find known studies #291

Closed mikix closed 2 months ago

mikix commented 2 months ago

Previously, we assumed they'd be directories inside site-packages.

But in some cases (like pip install -e . in linux), that installs a .pth file that points at the real location.

So let's just ask Python where these known modules are.

Fixes #290

Checklist

github-actions[bot] commented 2 months ago

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2032 2019 99% 90% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cumulus_library/cli.py 100% 🟢
TOTAL 100% 🟢

updated for commit: f9bc9d2 by action🐍