Closed sriesenberg-reply closed 3 months ago
Hi @sriesenberg-reply! Thanks for opening a issue with us for this bug - we will go ahead and get this added to our backlog and I hope to have an update for you soon! In the meantime, if you wanted to open a PR with your suggested changes we would greatly appreciate it!
Hello again @sriesenberg-reply - I've merged your PR and have published a release candidate version to PyPI
We'll be publishing the full release soon, but wanted to give you a heads up that I will be closing this issue.
Thanks again for your support of awsume!
Issue
The function
load_config()
in awsumepy/lib/config_management.py removes the legacy config directory at~/.awsume
https://github.com/trek10inc/awsume/blob/285d0125179e50b8e023b4ecbd913fbe45a61aae/awsume/awsumepy/lib/config_management.py#L56This operation fails if the directory is not empty and produces this error:
But the function
configure_logger()
in autoawsume/main does not consider if the user has set their XDG base directories and still writes to the legacy config directory: https://github.com/trek10inc/awsume/blob/285d0125179e50b8e023b4ecbd913fbe45a61aae/awsume/autoawsume/main.py#L82-L84Proposal
Adjust
configure_logger()
to also use awsumepy/lib/conastants.py or something similar and to add and use theXDG_STATE_HOME
directory, which defaults to~/.local/state
(see: XDG Base Directory Specification)