git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
608d831
)
fix set_attributes
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 6 Aug 2012 01:17:47 +0000
(21:17 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 6 Aug 2012 01:17:47 +0000
(21:17 -0400)
sfa/util/config.py
patch
|
blob
|
history
diff --git
a/sfa/util/config.py
b/sfa/util/config.py
index
32b95b9
..
444ceeb
100644
(file)
--- a/
sfa/util/config.py
+++ b/
sfa/util/config.py
@@
-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]
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)
setattr(self, name, value)
setattr(self, name.upper(), value)