Move data inside package and update references

This commit is contained in:
thePR0M3TH3AN
2025-06-21 12:20:51 -04:00
parent c5b6077eee
commit b72d726bd5
31 changed files with 8 additions and 6 deletions

View File

@@ -17,11 +17,13 @@ ROOT = Path(__file__).resolve().parent.parent
def _template_res(*parts) -> Traversable:
return resources.files(__package__).joinpath('..', 'templates', *parts)
"""Return a Traversable for files under the packaged ``templates`` folder."""
return resources.files(__package__).joinpath('templates', *parts)
def _src_res(*parts) -> Traversable:
return resources.files(__package__).joinpath('..', 'src', *parts)
"""Return a Traversable for files under the packaged ``src`` folder."""
return resources.files(__package__).joinpath('src', *parts)
def require_cmd(cmd: str):