Skip to content

Problem with PATH variable #9

@kevin-stuart

Description

@kevin-stuart

After installing this plugin SendREPL, I had a problem with it and reported it here. It turned out that the PATH variable was not correct. python-pywin32 could therefore not be loaded, which caused problems with SendREPL.

More specifically, looking at PATH with from os import environ; environ["PATH"] it turned out that :/usr/local/bin:/usr/local/bin was appended to PATH, but on Windows the separator is ";". So appending with ":" destroys the last element, which was pywin32 in this case.

I tried uninstalling plugins one by one to determine which plugin caused this and it seems that it is the fault of this plugin. Installing it again makes the problem reappear and uninstalling and restarting makes it disappear.

I found this piece of code, which uses string operations for modifying PATH:

ENVIRON = os.environ
if platform.system() != 'Windows':
    ENVIRON['PATH'] += ':/usr/local/bin'

However, just looking at it, it should not be the cause of it. However, it is also strange that /usr/local/bin is appended two times. So I have not yet found the exact problem.

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