Skip to content

Make PYTHONPATH update work cross-platform #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2019
Merged

Conversation

zooba
Copy link
Contributor

@zooba zooba commented Feb 15, 2019

os.path.pathsep is : on POSIX-like platforms and ; on Windows, so use that when adding paths to the PYTHONPATH variable.
os.getenv does (correct) case-insensitive lookup, but env here will be case-sensitive. Read existing value from os.getenv instead.

`os.path.pathsep` is `:` on POSIX-like platforms and `;` on Windows, so use that when adding paths to the `PYTHONPATH` variable.
`os.getenv` does (correct) case-insensitive lookup, but `env` here will be case-sensitive. Read existing value from `os.getenv` instead.
@zooba
Copy link
Contributor Author

zooba commented Feb 15, 2019

Hopefully you've got CI to validate that... oh guess not. I just made the edit quickly in the web editor and haven't tested it

@cs01
Copy link
Owner

cs01 commented Feb 15, 2019

Thanks! Yeah adding CI is on my list of things to do. I will check this before merging. Won't be able to get to this probably until next week (out of town this weekend).

@cs01
Copy link
Owner

cs01 commented Feb 16, 2019

Gave it a quick test and it worked. Thanks again.

@cs01 cs01 closed this Feb 16, 2019
@cs01 cs01 reopened this Feb 16, 2019
@cs01 cs01 merged commit d0b7914 into cs01:master Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants