Create empty config file if none found (see #467)

We already had code in place for this, but it was run after the config
validation, so on a new installation Mopidy would fail because of missing
config values before the config file was created.
This commit is contained in:
Stein Magnus Jodal 2013-09-16 22:27:54 +02:00
parent 1a02b4d17f
commit 7cd7216b94

View File

@ -53,6 +53,8 @@ def main():
logging_config, args.verbosity_level, args.save_debug_log)
logging_initialized = True
create_file_structures()
installed_extensions = ext.load_extensions()
config, config_errors = config_lib.load(
@ -73,7 +75,6 @@ def main():
proxied_config = config_lib.Proxy(config)
log.setup_log_levels(proxied_config)
create_file_structures()
check_old_locations()
ext.register_gstreamer_elements(enabled_extensions)