Skip to content
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

cannot set PYTHONPATH? #45

Closed
melchoir55 opened this issue Sep 28, 2017 · 3 comments
Closed

cannot set PYTHONPATH? #45

melchoir55 opened this issue Sep 28, 2017 · 3 comments
Labels

Comments

@melchoir55
Copy link

This plugin seems to work well setting our environment variables.

There is one var in particular, however, which doesn't seem to be set when we put it in the env file. That is PYTHONPATH.

My test was to place PYTHONPATH in the run config env vars and print out the var to console. This worked.

When I placed PYTHONPATH in the .env file and printed the var out to console, this did not work. However, other vars did.

@ashald
Copy link
Owner

ashald commented Mar 7, 2018

Hm, interesting, I will try that out.

@ashald ashald added the bug label Mar 7, 2018
@jirkadanek
Copy link

Extending PYTHONPATH works for me in run configurations; intellij (with Python plugin) does not pick it up in editor for code completion, but I did not expect it to. One problem was that my .env file got somehow detected wrong, or something. I did not investigate why. I had to copy .env into my.env and add it again to run configuration, then it all worked

image

@ashald
Copy link
Owner

ashald commented Sep 9, 2019

I was wondering why this issues sounds familiar to me but couldn't figure it out until you brought up PYTHONPATH.
PyCharm handles it in a special way and my personal rule of thumb is to avoid touching it as much as I can.

To the best of my knowledge it won't work with many (or any?) other envfile implementations, but you can leverage the EnFIle variable substitution as discussed in #88.

@ashald ashald closed this as completed Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants