add option to execute scripts with sequencer

This commit is contained in:
2022-03-09 17:35:36 +01:00
parent 64fc31260d
commit d3f3585d10

View File

@@ -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)