Skip to content

Contents of WinPython_PS_Prompt file #432

@georgejean

Description

@georgejean

Hi,

My WinPython version is 3.5.2.2Qt5.
The powershell launch icon is a good thing but I see one strange line in this file (discovered when I wanted to configure my profile):

if (-not $env:WINPYDIR -eq "$dp0\..\python-3.4.4.amd64")...

shouldn't this line be replaced by this one (adding brackets):

if (-not ($env:WINPYDIR -eq "$dp0\..\python-3.4.4.amd64"))

?
-not $env:WINPYDIR -eq "$dp0\..\python-3.4.4.amd64" is the same as (-not $env:WINPYDIR) -eq "$dp0\..\python-3.4.4.amd64" and a non-empty string is True when cast into a boolean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions