Skip to content

Commit

Permalink
Adding direct circtools interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tjakobi committed Aug 7, 2020
1 parent 513c4d0 commit 864f93c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DCC/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from .fix2chimera import Fix2Chimera


def main():
def main(circtools_parser=None):
version = "0.5.0"

parser = argparse.ArgumentParser(prog="DCC", formatter_class=argparse.RawDescriptionHelpFormatter,
Expand Down Expand Up @@ -104,6 +104,10 @@ def main():

parser.add_argument_group(group)

# called directly from circtools
if circtools_parser:
parser = circtools_parser

options = parser.parse_args()

timestr = time.strftime("%Y-%m-%d_%H%M")
Expand Down

0 comments on commit 864f93c

Please sign in to comment.