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

Script: Add config in script init parameter.

Showing with 3 additions and 2 deletions
+3 -2
......@@ -22,9 +22,10 @@ class AScript(object):
name = ""
description = ""
def __init__(self, args):
def __init__(self, conf, args):
super(AScript, self).__init__()
self._conf = conf
self._args = args.copy()
def usage(self):
......
......@@ -79,7 +79,7 @@ def main():
usage(sys.argv)
sys.exit(-1)
application = scripts[script](sys.argv)
application = scripts[script](conf, sys.argv)
ret = application.run()
if not ret:
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