Commit c58f5a12 authored by Jens Korinth's avatar Jens Korinth
Browse files

Bugfix

parent 90e7cca7
...@@ -33,10 +33,10 @@ def run_vivado(script): ...@@ -33,10 +33,10 @@ def run_vivado(script):
output = p.communicate(input = script)[0] output = p.communicate(input = script)[0]
print output.decode() print output.decode()
def parse_args: def parse_args():
parser = argparse.ArgumentParser(description = 'Package a hardware module specified by JSON as IP-XACT.') parser = argparse.ArgumentParser(description = 'Package a hardware module specified by JSON as IP-XACT.')
parser.add_argument('json', help = 'path to JSON file') parser.add_argument('json', help = 'path to JSON file')
return parser.parse_args() return parser.parse_args()
args = parse_args args = parse_args()
run_vivado(make_vivado_script(args.json)) run_vivado(make_vivado_script(args.json))
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