projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5818c
)
first pickle, then save to avoid killing config file on sigint
author
Felix Domke
<tmbinc@elitedvb.net>
Mon, 2 Mar 2009 23:44:19 +0000
(
00:44
+0100)
committer
Felix Domke
<tmbinc@elitedvb.net>
Mon, 2 Mar 2009 23:44:19 +0000
(
00:44
+0100)
lib/python/Components/config.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/config.py
b/lib/python/Components/config.py
index
79e99b0
..
4cc4063
100755
(executable)
--- a/
lib/python/Components/config.py
+++ b/
lib/python/Components/config.py
@@
-1614,8
+1614,9
@@
class Config(ConfigSubsection):
self.setSavedValue(tree["config"])
def saveToFile(self, filename):
+ text = self.pickle()
f = open(filename, "w")
- f.write(
self.pickle()
)
+ f.write(
text
)
f.close()
def loadFromFile(self, filename):