Fix ugly double import from blocksfree.legacy

This commit is contained in:
T. Joseph Carter 2017-07-07 09:02:02 -07:00
parent b543ea2f2d
commit 330c90d830
1 changed files with 2 additions and 1 deletions

3
cppo
View File

@ -47,7 +47,6 @@ ShrinkIt support requires Nulib2. cppo requires xxxPython 3.5+."""
import sys
import os
from blocksfree.legacy import g
import blocksfree.legacy
def usage(exitcode=1):
@ -55,6 +54,8 @@ def usage(exitcode=1):
sys.exit(exitcode)
def cppo(args: list):
g = blocksfree.legacy.g
while True: # breaks when there are no more arguments starting with dash
if len(args) == 1:
usage()