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

Fix the bug in hands_on/bug_hunt/file_datastore.py #1

Open
pberkes opened this issue Aug 25, 2023 · 0 comments
Open

Fix the bug in hands_on/bug_hunt/file_datastore.py #1

pberkes opened this issue Aug 25, 2023 · 0 comments

Comments

@pberkes
Copy link
Contributor

pberkes commented Aug 25, 2023

The FileDatastore is initialized using a base_path, and then it should be able to read/write files in it, given a path relative to the base path.

The current code works correctly when base_path is an absolute path but not when it's a relative path!

Go to hands_on/bug_hunt and run file_datastore.py to reproduce the bug. Use the debugger to find the bug the fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant