assemblers: use api.arguments

Instead of reading the arguments from sys.stdin, which requires
that stdin is setup properly for that in the runner, use the new
api.arguments() method to directly fetch the arguments.

Also fix missing newlines between imports and methods to be more
PEP-8 complaint, where needed.
This commit is contained in:
Christian Kellner 2020-08-24 23:41:50 +02:00 committed by David Rheinsberg
parent fc5e0070c5
commit fc6e6285ca
5 changed files with 20 additions and 6 deletions

View file

@ -184,6 +184,6 @@ def main(tree, output_dir, options, meta):
if __name__ == '__main__':
args = json.load(sys.stdin)
args = api.arguments()
r = main(args["tree"], args["output_dir"], args["options"], args["meta"])
sys.exit(r)