--- a/connectors/LPC/LPCObject.py Tue Dec 15 15:39:39 2009 +0100
+++ b/connectors/LPC/LPCObject.py Tue Dec 15 16:04:28 2009 +0100
@@ -56,7 +56,7 @@
location[0].isalpha() and \
location[1] == ':' :
self.SerialConnection = None
- if os.path.exist(location):
+ if os.path.exists(location):
self.StorageConnection = location
self.PLCStatus = "Stopped"
else:
--- a/connectors/LPC/__init__.py Tue Dec 15 15:39:39 2009 +0100
+++ b/connectors/LPC/__init__.py Tue Dec 15 16:04:28 2009 +0100
@@ -18,7 +18,7 @@
#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
-import LPCObject
+from LPCObject import LPCObject
permanant_connector = None
@@ -27,10 +27,10 @@
This returns the connector to LPC style PLCobject
"""
global permanant_connector
+ servicetype, location = uri.split("://")
if permanant_connector is None:
permanant_connector = LPCObject(pluginsroot,location)
else:
- servicetype, location = uri.split("://")
permanant_connector.UpdateLocation(location)
return permanant_connector