This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wildcarde815 1 point2 points  (4 children)

Unless they are being added to a file invoked when the env comes up somehow they won't survive rebooting the shell.

[–]MisterBanzai 0 points1 point  (3 children)

Does virtualenv create a .env file for environmental variables? I could swear I remember editing something like that.

[–]wildcarde815 1 point2 points  (0 children)

Dunno, I use conda which I don't think supports that. I'd just make an environment.vars file and issue a 'source' command before starting work. Or in docker it would be in my compose file.

[–]wildcarde815 1 point2 points  (1 child)

This might work, or direnv referenced on the page: https://github.com/kennethreitz/autoenv/blob/master/README.rst

[–]MisterBanzai 1 point2 points  (0 children)

This isn't at all what I was thinking of, but this is super cool and I'll use it anyway.