mirror of https://gitlab.com/pamhyr/pamhyr2
Script: Add app in script parameters.
parent
f5046858c8
commit
4f471d4d6f
|
|
@ -22,9 +22,10 @@ class AScript(object):
|
|||
name = ""
|
||||
description = ""
|
||||
|
||||
def __init__(self, conf, args):
|
||||
def __init__(self, app, conf, args):
|
||||
super(AScript, self).__init__()
|
||||
|
||||
self._app = app
|
||||
self._conf = conf
|
||||
self._args = args.copy()
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ def main():
|
|||
usage(sys.argv)
|
||||
sys.exit(-1)
|
||||
|
||||
application = scripts[script](conf, sys.argv)
|
||||
application = scripts[script](app, conf, sys.argv)
|
||||
ret = application.run()
|
||||
if not ret:
|
||||
application.usage()
|
||||
|
|
|
|||
Loading…
Reference in New Issue