Commit 4f471d4d authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Script: Add app in script parameters.

Showing with 3 additions and 2 deletions
+3 -2
...@@ -22,9 +22,10 @@ class AScript(object): ...@@ -22,9 +22,10 @@ class AScript(object):
name = "" name = ""
description = "" description = ""
def __init__(self, conf, args): def __init__(self, app, conf, args):
super(AScript, self).__init__() super(AScript, self).__init__()
self._app = app
self._conf = conf self._conf = conf
self._args = args.copy() self._args = args.copy()
......
...@@ -88,7 +88,7 @@ def main(): ...@@ -88,7 +88,7 @@ def main():
usage(sys.argv) usage(sys.argv)
sys.exit(-1) sys.exit(-1)
application = scripts[script](conf, sys.argv) application = scripts[script](app, conf, sys.argv)
ret = application.run() ret = application.run()
if not ret: if not ret:
application.usage() application.usage()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment