Open
Description
In VS Code dev containers, there is no /run/user
folder in the default Python container.
This means using user_runtime_path
and trying to put anything there (or using the ensure_exists
argument) will result in a crash, with PermissionError: [Errno 13] Permission denied: '/run/user'
.
I'm not certain what the best route forwards is here, and this is not my area of expertise! Some tentative thoughts:
- A good solution might be to fall back to a different user runtime directory location if
/run/user
doesn't exist. - An alternative would be to push this back to users of this package, warning them in the docs that the directory might not exist and they should check it beforehand (although this seems unideal).
- Or maybe the default Python dev container should be updated so it does have a runtime dir.
Metadata
Metadata
Assignees
Labels
No labels