Skip to content

No prompt in pyvenv.cfg makes venv incorrectly empty #373

@matthubb

Description

@matthubb

The new ini check will incorrectly blank out env if there is no prompt value in the ini file.

env = cfg.Section("").Key("prompt").String()

I'm not that familiar with golang, perhaps assigning the output of the ini lookup to a temporary value and checking it's not empty before overwriting env would suitably resolve this issue?

new_env = cfg.Section("").Key("prompt").String()
if new_env != "" {
        env = new_env
}

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