Hi,
I thought in an event plugin, I could import the Deadline.Plugins namespace and execute a “RunManagedProcess” within one of the events, such as OnJobFinished?
Annoyingly I should have tested this before writing the other class! Do I have any other options?
Thanks,
Mike
[code]import os
import clr
import sys
from System.IO import *
from System.Text import *
from System.Diagnostics import *
from System.Collections.Specialized import *
from System.Text.RegularExpressions import *
from Deadline.Events import *
from Deadline.Plugins import *
from Deadline.Scripting import *
def GetDeadlineEventListener():
return eventPlugin()
class eventPlugin ( DeadlineEventListener ):
def OnJobFinished( self, job ):
Process = AnotherClass( self.Executable, self.File )
RunManagedProcess( Process )
class AnotherClass (ManagedProcess):
bla bla
arguments
exeuctable
etc…[/code]