Fix bug with 'projects' entry in configuration file
authorLaurent Bessard
Wed, 18 Jul 2012 01:02:08 +0200
changeset 728 ce36d704184b
parent 727 46ae58e6469f
child 729 a47f641e50f0
Fix bug with 'projects' entry in configuration file
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Tue Jul 17 21:23:21 2012 +0200
+++ b/PLCOpenEditor.py	Wed Jul 18 01:02:08 2012 +0200
@@ -796,7 +796,7 @@
         projects = {}
         try:
             if self.Config.HasEntry("projects"):
-                projects = cPickle.loads(self.Config.Read("projects"))
+                projects = cPickle.loads(str(self.Config.Read("projects")))
         except:
             pass
         
@@ -807,7 +807,7 @@
         state = page.GetState()
         if state is not None:
             if self.Config.HasEntry("projects"):
-                projects = cPickle.loads(self.Config.Read("projects"))
+                projects = cPickle.loads(str(self.Config.Read("projects")))
             else:
                 projects = {}
             
@@ -996,7 +996,7 @@
             projects = {}
             try:
              	if self.Config.HasEntry("projects"):
-                	projects = cPickle.loads(self.Config.Read("projects"))
+                	projects = cPickle.loads(str(self.Config.Read("projects")))
             except:
             	pass