add high level compatibility
This commit is contained in:
parent
4e4160267d
commit
a6fb6960df
@ -1,8 +1,10 @@
|
|||||||
# pylint: disable=too-many-branches, too-many-statements
|
# pylint: disable=too-many-branches, too-many-statements
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
try:
|
||||||
from openpifpaf.network.factory import cli as openpifpaf_cli
|
from openpifpaf.network.nets import cli as openpifpaf_cli
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
from openpifpaf.network.factory import cli as openpifpaf_cli
|
||||||
from openpifpaf.network import nets
|
from openpifpaf.network import nets
|
||||||
from openpifpaf import decoder
|
from openpifpaf import decoder
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user