Skip to content

Commit

Permalink
Write default configuration on startup (bug 1511)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thp committed Dec 5, 2011
1 parent e342d58 commit 07c60f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gpodder/config.py
Expand Up @@ -132,6 +132,10 @@ def __init__(self, filename='gpodder.conf'):

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):
Expand Down

0 comments on commit 07c60f4

Please sign in to comment.