connectors/LPC/LPCObject.py
changeset 520 ca5a2047e0ed
parent 508 73ecb803d8af
child 521 02cb9e5fb6f6
equal deleted inserted replaced
519:3a5faff52e5c 520:ca5a2047e0ed
    54         # or a drive unit ?
    54         # or a drive unit ?
    55         elif len(location)==2 and \
    55         elif len(location)==2 and \
    56              location[0].isalpha() and \
    56              location[0].isalpha() and \
    57              location[1] == ':' :
    57              location[1] == ':' :
    58             self.SerialConnection = None
    58             self.SerialConnection = None
    59             if os.path.exist(location):
    59             if os.path.exists(location):
    60                 self.StorageConnection = location
    60                 self.StorageConnection = location
    61                 self.PLCStatus = "Stopped"
    61                 self.PLCStatus = "Stopped"
    62             else:
    62             else:
    63                 self.pluginsroot.logger.write_error("Drive "+
    63                 self.pluginsroot.logger.write_error("Drive "+
    64                                                     location+
    64                                                     location+