Any way to stop post system setup from overwriting PATH? #1491
Replies: 2 comments 4 replies
-
My question would be, do you you have to do it this way in the first place? If you need to manipulate PATH to do some "setup" for python why not do the setup stuff in python's package.py, or some other python_utils package, or maybe see if ephemerals are what you need? It seems like injecting environment variables by stringing together commands is not very maintainable or understandable from a user perspective. Maybe I'm missing something. Rez comes with many features, I encourage you to look through the configuration to find something that better suits your needs. |
Beta Was this translation helpful? Give feedback.
-
I don't think that it is supported, but your are not the first to ask for something like that. I know I have personally wanted that once or twice in the past. I've always been on the fence though and I never succeeded at convincing myself that it's a good way to manage an environment. @Anti-Distinctlyminty can you tell us more about what you are trying to achieve? We can probably help you find an alternative solution and it would also help us collect more data on how our users use rez (which generally helps to build the roadmap and plan features). |
Beta Was this translation helpful? Give feedback.
-
I'm taking a look at the context of a rez environment and I noticed something that is causing me some headaches regarding the
PATH
environment variable. To do this I'm running something likemy_package make of the rez
source
command, and the file it sources makes alterations toPATH
. However, the result of the previous command is that I end up with amy_package.bat
that looks like this:As you can see, because
PATH
is set during the post system setup any changes made by thecall
toPATH
are overwritten.Is there any way to get around this problem?
Beta Was this translation helpful? Give feedback.
All reactions