Hello there!
Is there a way, to include windows environment variable in a plugin’s executable’s path?
I can’t seem to find anything about this, and it seems like the %localappdata%
format is not resolved by Deadline 10.
Thanks in advance!
Hello there!
Is there a way, to include windows environment variable in a plugin’s executable’s path?
I can’t seem to find anything about this, and it seems like the %localappdata%
format is not resolved by Deadline 10.
Thanks in advance!
Hello
Thanks for reaching out. I do not think it can be resolved by Deadline at all. Windows can only resolve the environment like this. Just out of curiosity what are you trying to achieve?
On our farm machines there is software under the
C:\Users\{username}\AppData\Local\software
path.
Since this path changes for every user, I would like to use a path like this:
%localappdata%\software
to cover this path depending on which machine is running the task.
You would have to hack the render plugin’s RenderExecutable
method to call e.g. os.path.expandvars
at a suitable moment.
If Deadline can’t translate these vars to paths, then this will be a solution, thanks for the suggestion!
Your solution works perfectly!
In GetRenderExecutable
simply changed
gafferExeList = self.GetConfigEntry("Executable" + str(self.Version).replace(".", "_"))
to
gafferExeList = os.path.expandvars(self.GetConfigEntry("Executable" + str(self.Version).replace(".", "_")))
and it works like a charm.