Skip to content

Ampersand (&) in folder name breaks pipenv shell #4538

@anton3s

Description

@anton3s

Issue description

When a new pipenv is created in a folder that contains an ampersand the new environment can't be activated with pipenv shell.

Expected result

A successfully activated environment.

Actual result

Error which indicates the path was split on the &.

No such file: B-0WFjT3c-/bin/activate

Steps to replicate

mkdir A\&B
pipenv shell

Steps to fix

The regular expression in project.Project._sanitize should also include &.

Workaround

You can create a pipenv in a subfolder of the folder.

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