[code]jobInfoFile = Path.Combine( deadlineTemp, “%s.job”%job.Name )
fileHandle = open( jobInfoFile, “w” )
fileHandle.write( “Plugin=DraftPlugin\n” )
postJobScript = ‘Z:/DeadlineRepository8/postJobScripts/postJobScript01.py’
fileHandle.write(“PostJobScript=%s\n” % postJobScript)[/code]
Unfortunately even after having '“PostJobScript” attribute specified and set it does not make Deadline run the specified python script after the render job is completed.
Interesting that if the same postJobScript01.py is linked to the job’s Post Job Script attribute using GUI dialog Deadline will properly run the post-job script when the render job is completed:
What would be a way to specify the PostJobScript attribute at the time the job is submitted using one of the attributes in plugin.job or plugin_Info.job config files? If that is not possible then the question would be: how to modify the Job’s PostJobScript Property after the job is submitted so Deadline would run postJobScript01.py after the job is completed?