aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-03-03 00:44:19 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-03-03 00:44:19 +0100
commit533dd652737ca702c0e9528ed06e8a17b9ec72c5 (patch)
treee33b43dc831f798f3836b0c362c4d4f0a215ffb1 /lib/python
parent4a5818c82c71caa97447d4f91bd418a68c0bf174 (diff)
downloadenigma2-533dd652737ca702c0e9528ed06e8a17b9ec72c5.tar.gz
enigma2-533dd652737ca702c0e9528ed06e8a17b9ec72c5.zip
first pickle, then save to avoid killing config file on sigint
Diffstat (limited to 'lib/python')
-rwxr-xr-xlib/python/Components/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 79e99b03..4cc40633 100755
--- 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):