#!/usr/bin/env python3 import configparser import sys def log(*args): print(*args) sys.stdout.flush() def print_help(): log("Unified FPGA synthesizer frontend\r\n(c) Joppe Blondel - 2022\r\n") log(f"Usage: {sys.argv[0]} [ OPTIONS ] target ...") log("") log("Options:") log(" -h Show this help message") log(" -c Configuration file, defaults to project.cfg") if __name__=="__main__": # Parse arguments i = 1 nextarg = None configpath = 'project.cfg' targets = [] while i