chariot-dev / chariot

IoT Sensor Framework
GNU Lesser General Public License v3.0
5 stars 4 forks source link

Make module import more concise #56

Closed enioluwas closed 4 years ago

enioluwas commented 4 years ago

Submodules that are single class exports currently have to be imported externally like so:

from chariot.device.configuration.DeviceConfiguration import DeviceConfiguration

If the __init__ file in chariot/device/configuration does this import, then they can be imported like this instead:

from chariot.device.configuration import DeviceConfiguration

This looks shorter and less redundant. This change will have to be made across the entire core.