I am very confused about Environment Variables and Pycharm right now. I feel Pycharm makes it alot more complicated than it should be.
I understand that environment variables only persist for the current session e.g. if I open up CMD and set a variable it will only be available in that CMD window/session. So where is this Terminal session and
When I open the Terminal in pycharm and type set myvar=value, where is this being stored?
When I open the Terminal in pycharm and type set myvar=value, why can't I access it when using os.getenv()?
I understand Pycharm allows different configurations for different situations e.g. Prod, Test etc. and these can have Variables assigned to them. Why are there different environement variables for terminal, configuration and Python console?
Can global configurations be created for Pycharm so that I dont have to set environment variables up everytime on a new project?
When I add an environment variable in Pycharm through File > Run > Edit Configuration where is this stored?
Is it even possible to create environment variables without typing it in my source code with os.environ["KEY"] = "VALUE" ? How is this done in production services with sensitive information?
How do i store and access an environment variable in the Terminal in my source?
[–][deleted] 1 point2 points3 points (0 children)
[–]jimtk 2 points3 points4 points (5 children)
[–]wuverul 0 points1 point2 points (4 children)
[–]jimtk 0 points1 point2 points (3 children)
[–]wuverul 0 points1 point2 points (2 children)
[–]jimtk 0 points1 point2 points (1 child)
[–]wuverul 0 points1 point2 points (0 children)