From d3e6dd11406893bfbc5537dfbe74d8151bbc1280 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 12 Dec 2017 09:59:50 -0800 Subject: mpm: Harmonize imports, tidy + sort modules - Moved nijesdcore to cores/ - Moved udev, net, dtoverlay, uio to sys_utils/ - Made all imports non-relative (except in __init__.py files) - Removed some unnecessary imports - Reordered some imports for Python conventions --- mpm/python/usrp_mpm/periph_manager/n310.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'mpm/python/usrp_mpm/periph_manager/n310.py') diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py index 384c69e97..ed1b5d164 100644 --- a/mpm/python/usrp_mpm/periph_manager/n310.py +++ b/mpm/python/usrp_mpm/periph_manager/n310.py @@ -25,17 +25,13 @@ import shutil import subprocess from six import iteritems, itervalues from builtins import object -from .base import PeriphManagerBase -from ..net import get_iface_addrs -from ..net import byte_to_mac -from ..mpmtypes import SID +from usrp_mpm.periph_manager import PeriphManagerBase +from usrp_mpm.mpmtypes import SID from usrp_mpm.rpc_server import no_rpc -from usrp_mpm import net -from usrp_mpm import dtoverlay +from usrp_mpm.sys_utils import dtoverlay +from usrp_mpm.sys_utils.sysfs_gpio import SysFSGPIO +from usrp_mpm.sys_utils.uio import UIO from usrp_mpm.xports import XportMgrUDP, XportMgrLiberio -from ..sysfs_gpio import SysFSGPIO -from .. import libpyusrp_periphs as lib -from ..uio import UIO N3XX_DEFAULT_EXT_CLOCK_FREQ = 10e6 N3XX_DEFAULT_CLOCK_SOURCE = 'external' -- cgit v1.2.3