diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-03-03 00:44:19 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-03-03 00:44:19 +0100 |
| commit | 533dd652737ca702c0e9528ed06e8a17b9ec72c5 (patch) | |
| tree | e33b43dc831f798f3836b0c362c4d4f0a215ffb1 | |
| parent | 4a5818c82c71caa97447d4f91bd418a68c0bf174 (diff) | |
| download | enigma2-533dd652737ca702c0e9528ed06e8a17b9ec72c5.tar.gz enigma2-533dd652737ca702c0e9528ed06e8a17b9ec72c5.zip | |
first pickle, then save to avoid killing config file on sigint
| -rwxr-xr-x | lib/python/Components/config.py | 3 |
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): |
