We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
importlib_resources
Currently, https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/download/checksums.py read checksums using relative dir:
datasets/tensorflow_datasets/core/download/checksums.py
Line 28 in 0c308e4
This is hacky when more modern https://docs.python.org/3/library/importlib.html#importlib.resources.files exists with a Pathlib-like interface.
path = importlib_resources.files('tensorflow_datasets') / 'url_checksums' files = [p for p in path.listdir() if str(p).endswith('txt')]
It would make TFDS work even when Python is executed inside compressed .zip archive.
.zip
The text was updated successfully, but these errors were encountered:
Added the PR
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Currently, https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/download/checksums.py read checksums using relative dir:
datasets/tensorflow_datasets/core/download/checksums.py
Line 28 in 0c308e4
This is hacky when more modern https://docs.python.org/3/library/importlib.html#importlib.resources.files exists with a Pathlib-like interface.
It would make TFDS work even when Python is executed inside compressed
.zip
archive.The text was updated successfully, but these errors were encountered: