# HG changeset patch # User edouard # Date 1260889468 -3600 # Node ID ca5a2047e0ed32357418b832aae5f5b700fd1921 # Parent 3a5faff52e5cb498f669679ca480232e33ba90c7 Fixed typos in LPC connector diff -r 3a5faff52e5c -r ca5a2047e0ed connectors/LPC/LPCObject.py --- 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: diff -r 3a5faff52e5c -r ca5a2047e0ed connectors/LPC/__init__.py --- 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