Skip to content

$PIPENV_PATH no longer works after default to python3 #398

Closed
@leonexis

Description

@leonexis

Due to 2850374, pythonBin is reset to "python" when whichSync can't find the config-provided path. In my case, that path is "$PIPENV_PATH/bin/python". As whichSync does not understand $PIPENV_PATH, it errors causing the pythonBin to be reset:

    let pythonBin = atom.config.get("ide-python.python") || "python3"
    if (whichSync(pythonBin, { nothrow: true }) === null) {
      pythonBin = "python"
    }

    this.python = replacePipEnvPathVar(pythonBin, venvPath)

Reverting 2850374 resolves this issue, though perhaps there is another way to find if Python 3 is installed that does not conflict with pipenv support.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions