add option to execute scripts with sequencer
This commit is contained in:
@@ -62,6 +62,10 @@ class Actions:
|
||||
def compile_presentation():
|
||||
subprocess.run(["helpers/compile_presentation.sh"], check=True)
|
||||
|
||||
@staticmethod
|
||||
def external(*args):
|
||||
subprocess.run(args, check=True)
|
||||
|
||||
def dispatch(action, args=[]):
|
||||
if action in dir(Actions):
|
||||
getattr(Actions, action)(*args)
|
||||
|
||||
Reference in New Issue
Block a user