add pifpaf compatibility for run script
This commit is contained in:
parent
a6fb6960df
commit
0dea7a2cdb
@ -3,7 +3,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
try:
|
try:
|
||||||
from openpifpaf.network.nets import cli as openpifpaf_cli
|
from openpifpaf.network.nets import cli as openpifpaf_cli
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
from openpifpaf.network.factory import cli as openpifpaf_cli
|
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