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

messages: support appdirs user_log_dir for darwin #17

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

sergiusens
Copy link
Collaborator

appdirs.user_log_dir takes appname as the first parameter and while
the code path works when it is None for windows and linux, it runs
os.path.expandpath("~/...", appname) and darwin which fails as
appname is None.

https://github.com/ActiveState/appdirs/blob/48357882e5c095003e10f8351b405bf54e41424f/appdirs.py#L395

Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com


  • Have you signed the CLA?

appdirs.user_log_dir takes appname as the first parameter and while
the code path works when it is None for windows and linux, it runs
`os.path.expandpath("~/...", appname)` and darwin which fails as
appname is None.

https://github.com/ActiveState/appdirs/blob/48357882e5c095003e10f8351b405bf54e41424f/appdirs.py#L395

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Copy link
Contributor

@facundobatista facundobatista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful.

@sergiusens sergiusens merged commit 616673f into main Oct 18, 2021
@sergiusens sergiusens deleted the appdirs-darwin branch October 18, 2021 18:12
tigarmo pushed a commit that referenced this pull request Jun 6, 2023
chore(deps): update release-drafter/release-drafter action to v5.22.0
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

Successfully merging this pull request may close these issues.

3 participants