How to use environment variables set up in run config, inside the run time parameters?
I am setting up environment variables in pycharms run configuration, but they do not resolve if I try to use them inside the parameters section. This doesn't make sense? Am I doing something wrong?
I've tried
- --example $HELLO_WORLD$
- --example ${HELLO_WORLD}
- --example $HELLO_WORLD

Please sign in to leave a comment.
To add some detail and expected behavior:
Then within environment variables I would have
HELLO_WORLDdeclared as seen above.... But in the run time stdout, I can see that an example program ran would have the following stdoutSo the environment variable is not resolving/replacing, and it would lead me to believe the text inside paremeters is just a raw string and cannot accept environment variables?
That cannot be the case??????
Bump
Hello,
Unfortunately, currently it's not possible. Values configured in the "Parameters" field of a run configuration are passed as strings and aren't processed by the shell.
I apologize for the inconvenience.