Reading JobAuxiliaryPath...

Hello,
I have a simple python script that I am submitting to deadline’s commandline plug-in with a JobInfo and Plug-in Info file. I am also including an auxiliary file on the command line that the script needs to read, and that is being successfully copied by deadline to the repository. (I am able to confirm by browsing to it with the deadline monitor.) How do I know the local path to the file on the render slave, so that I can read it directly from the slave? Is there an environment variable set when the job is running that will point to a local path? It seems like most functions require the JobId to establish what the directory is (for example GetJobAuxiliaryPath) but from what I am seeing, that points to the network location, and not the local slave location. Should I be able to query the current JobId from an environment variable in the script, and then use the jobId to determine what the local path should be?

Thanks!

Hello Seth,

Once a job is submitted, you can definitely get the Job ID, but it won’t exist until the job is submitted. I am not sure how much the JobID has an impact on the local path, though. On Windows, for example, it looks like we store files for a job in C:\Users[user]\AppData\Local\Temp, but on other OSes it might be different. Coudl you give a bit more information, or some examples, of what you need? Thanks.

Hi Seth,
If you need to query where the local slaves Jobs Directory is, so that you can retrieve the currently about to be processed data file(s) which were submitted with the job, then in your Python plugin script you would call this function, which is in the scripting API PDF/chm manual:

[code]self.GetJobsDataDirectory()

Gets the slave’s local job directory where the job’s auxiliary files are copied before rendering.

Returns
The local job directory path.[/code]

or any Auxiliary submitted files can be found with this function:

[code]self.GetAuxiliaryFilenames()

Gets the list of auxiliary files that were submitted with the job.

Returns
The list of auxiliary files.[/code]

Hope this helps!
Mike