Merge "Respect cli args for initialization check"

This commit is contained in:
Jenkins 2016-12-07 16:52:10 +00:00 committed by Gerrit Code Review
commit c36786f1f6
1 changed files with 2 additions and 1 deletions

View File

@ -278,7 +278,8 @@ def is_syntribos_initialized():
if not os.path.exists(get_syntribos_root()):
return False
if os.path.exists(get_default_conf_file()):
if any([os.path.exists(conf_file) for conf_file in
[get_default_conf_file(), CONF.config_file, CONF.config_dir]]):
return True
return False