Bug when pyserial not available fixed
authorlaurent
Wed, 16 Dec 2009 13:26:59 +0100
changeset 523 27903000e4ea
parent 522 6bd373f930f2
child 524 20141c30a160
Bug when pyserial not available fixed
connectors/LPC/__init__.py
--- a/connectors/LPC/__init__.py	Tue Dec 15 20:51:51 2009 +0100
+++ b/connectors/LPC/__init__.py	Wed Dec 16 13:26:59 2009 +0100
@@ -18,7 +18,6 @@
 #You should have received a copy of the GNU General Public
 #License along with this library; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-from LPCObject import LPCObject
 
 permanant_connector = None
 
@@ -26,6 +25,7 @@
     """
     This returns the connector to LPC style PLCobject
     """
+    from LPCObject import LPCObject
     global permanant_connector
     servicetype, location = uri.split("://")
     if permanant_connector is None: