except:
# Try myplc directory
try:
- execfile(file, self.__dict__)
+ execfile(myplc + os.sep + "plc_config", self.__dict__)
except:
raise PLCAPIError("Could not find plc_config in " + \
file + ", " + \
- myplc + "plc_config")
+ myplc + os.sep + "plc_config")
class XMLConfig:
"""
except:
raise PLCAPIError("Could not find plc_config.xml in " + \
file + ", " + \
- myplc + "plc_config.xml")
+ myplc + os.sep + "plc_config.xml")
for (category, variablelist) in cfg.variables().values():
for variable in variablelist.values():