jmsv / l293d

Python module to drive DC motors from a Raspberry Pi using the L293D chip

Home Page:http://l293d.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify driver import statement

jmsv opened this issue · comments

At the moment, to import the l293d driver module, import l293d.driver, or import l293d.driver as l293d is used.

By putting from driver import * in the l293d folder's __init__.py file, the import statement: import l293d can be used with the same effect as before. This import statement makes more sense, as the current method has proven to be counter-intuitive (see #57, for example)

Note: I'm not sure whether or not this is good practise - if anyone knows of a better solution, please suggest something

Closed in commit 1aa4628