mirror of
https://github.com/iKarith/cppo-ng.git
synced 2024-06-01 06:41:27 +00:00
Fix ugly double import from blocksfree.legacy
This commit is contained in:
parent
b543ea2f2d
commit
330c90d830
3
cppo
3
cppo
|
@ -47,7 +47,6 @@ ShrinkIt support requires Nulib2. cppo requires xxxPython 3.5+."""
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from blocksfree.legacy import g
|
|
||||||
import blocksfree.legacy
|
import blocksfree.legacy
|
||||||
|
|
||||||
def usage(exitcode=1):
|
def usage(exitcode=1):
|
||||||
|
@ -55,6 +54,8 @@ def usage(exitcode=1):
|
||||||
sys.exit(exitcode)
|
sys.exit(exitcode)
|
||||||
|
|
||||||
def cppo(args: list):
|
def cppo(args: list):
|
||||||
|
g = blocksfree.legacy.g
|
||||||
|
|
||||||
while True: # breaks when there are no more arguments starting with dash
|
while True: # breaks when there are no more arguments starting with dash
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
usage()
|
usage()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user