Closed krisgesling closed 2 years ago
I hit this issue with docker containers and flagged it back then, i recommended to use xdg_data_home
instead of save_data_dirs
etc.
A string definition should be a string definition, not create paths automatically on import
Sorry for missing / forgetting about that @JarbasAl. That is definitely a better way to handle it.
Describe the bug The pyxdg
save_config_path
ensures that a directory exists before using it. This is done usingos.path
: https://github.com/takluyver/pyxdg/blob/master/xdg/BaseDirectory.py#L57-L58Based on the Traceback below I'm wondering if we have items starting in separate threads, that are both checking/creating the XDG paths.
I haven't yet found other projects hitting the same issue.
Expected behavior Create the directory if it doesn't exist, otherwise just use it.
Environment (please complete the following information):