Write default configuration on startup (bug 1511)

When no configuration file exists, write the defaults
to the configuration file, so users using the CLI have
an easier time modifying the default settings.
This commit is contained in:
Thomas Perl 2011-12-05 09:24:53 +01:00
parent e342d58d6c
commit 07c60f4436

View file

@ -132,6 +132,10 @@ class Config(dict):
self.load()
# If there is no configuration file, we create one here (bug 1511)
if not os.path.exists(self.__filename):
self.save()
atexit.register( self.__atexit)
def __getattr__(self, name):