Skip to content

Problem with symlinked paths #615

Closed
Closed
@ut-adamc

Description

@ut-adamc

I've encountered an issue where I'm getting the "Filename ... does not start with any of these prefixes" error message. It appears to arise from the use of symlinks in both the prefix the Python was built with, and in many of the components of the PYTHONPATH variable. Looking at the code, it seems likely that use of os.path.realpath rather than os.path.abspath inside the change_prefix function would prevent this problem.

Are there reasons this is inadvisable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions