fix set_attributes
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 6 Aug 2012 01:17:47 +0000 (21:17 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 6 Aug 2012 01:17:47 +0000 (21:17 -0400)
sfa/util/config.py

index 32b95b9..444ceeb 100644 (file)
@@ -113,6 +113,10 @@ DO NOT EDIT. This file was automatically generated at
             for item in self.config.items(section):
                 name = "%s_%s" % (section, item[0])
                 value = item[1]
+                if isbool(value):
+                    value = str2bool(value)
+                elif value.isdigit():
+                    value = int(value)    
                 setattr(self, name, value)
                 setattr(self, name.upper(), value)