Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

macOS temp folders are symlinks, breaking prefix checks for paths #1326

@jakebailey

Description

@jakebailey

On macOS, /var is a symlink to /private/var. This makes the check when removing the temp folder from the search paths fail, as Python reports the "real" path after symlink resolution. For example, we generate tempWorkingDir:

/var/folders/th/4ly8df9956bfr2r2wpd51fwc0000gn/T/gfqxpe4c.ozq

But Python says it's:

/private/var/folders/th/4ly8df9956bfr2r2wpd51fwc0000gn/T/gfqxpe4c.ozq

Which does not begin with the expected path.

Related to #1324 but not fully fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions