Skip to content

Linux: Empty environment variables should use defaults #29

Closed

Description

@domdfcoding

This was originally reported in the appdirs tracker: ActiveState/appdirs#130

The gist is that, per the XDG spec, platformdirs should treat environment variables that are set but empty as if they were unset.


I came across this as part of pypa/pip#10202

pip patches appdirs to work around this: https://github.com/pypa/pip/blob/867bbb00ccb0506095e19a0e111ce06ce71a2495/tools/vendoring/patches/appdirs.patch#L47-L54

There is some prior discussion in pypa/pip#7501 (comment)

Activity

  1. gaborbernat commented on Jul 26, 2021

    @gaborbernat
    Member

    Can you open a PR to address it? Thanks!

  2. papr commented on Jul 28, 2021

    @papr
    Contributor

    I will give this a try.

  3. added a commit that references this issue on Jul 28, 2021
    6e66a3f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions