Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web: Use importlib to load static web ressources #38

Open
mhthies opened this issue Jul 2, 2021 · 0 comments
Open

web: Use importlib to load static web ressources #38

mhthies opened this issue Jul 2, 2021 · 0 comments
Labels
enhancement Improvement to an existing feature

Comments

@mhthies
Copy link
Owner

mhthies commented Jul 2, 2021

Goal is, to make SHC "zip_safe", i.e. make it executable directly from an unextracted wheel-package. This requires to load ressource files in a way that transparently extracts them from from the package if required, e.g. importlib.ressources.

For reference, see

However, I'm not sure if this is possible with our current approach of serving our static web ressources from a single static directory (see shc/web/interface.py:112).

@mhthies mhthies added the enhancement Improvement to an existing feature label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant