Adding path to $PATH
I'm trying to add an additional path to the PATH environment variable in my run configuration. With the default configuration os.environ.get('PATH') returns
/usr/bin:/bin:/usr/sbin:/sbin
(as expected). If I add PATH=/mypath and check 'Include parent environment variables' the above is simply replaced with /mypath, i.e. with /usr/bin etc. missing.
Setting PATH=/mypath:$PATH doesn't seem to work either, since $PATH does not get expanded and appears verbatim.
What am I doing wrong?
/usr/bin:/bin:/usr/sbin:/sbin
(as expected). If I add PATH=/mypath and check 'Include parent environment variables' the above is simply replaced with /mypath, i.e. with /usr/bin etc. missing.
Setting PATH=/mypath:$PATH doesn't seem to work either, since $PATH does not get expanded and appears verbatim.
What am I doing wrong?
Please sign in to leave a comment.
What is the proper syntax to append a value to a variable in the configuration?
I'm on windows, tried
PATH=%PATH%;my_path - doesn't work