Respect cli args for initialization check

Change-Id: I8d9f2d6d4e5e3f51553b4f577d42538c05ad2266
Closes-Bug: #1647470
This commit is contained in:
Duncan Hutty 2016-12-05 16:43:52 -05:00
parent 0c183c4b5c
commit 15508896ba
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