Skip to content

Linux: Empty environment variables should use defaults #29

@domdfcoding

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)

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