'How to use environment variables set up in run config, inside the run time parameters within a JetBrains IDE

I am setting up environment variables in PyCharm's 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

Then within environment variables I would have HELLO_WORLD declared. But in the run time stdout, I can see that an example program ran would be

stdout> example_script.py --example ${HELLO_WORLD}

So the environment variable is not resolving/replacing.

Example



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source