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

 

评论操作 固定链接

To add some detail and expected behavior:

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

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

So 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??????

0

请先登录再写评论。