Skip to content

Commit

Permalink
Remove support for /home/bsquizza/repos/bonfire/config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Jan 5, 2022
1 parent 8df5b08 commit 141a4ca
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bonfire/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,11 @@ def load_config(config_path=None):
if not config_path.exists():
raise FatalError(f"provided config file path '{str(config_path)}' does not exist")
else:
# no user-provided path, check default locations
config_path = Path("config.yaml")
log.debug("using default config path: %s", DEFAULT_CONFIG_PATH)
config_path = DEFAULT_CONFIG_PATH
if not config_path.exists():
log.debug("./config.yaml not found, using default path: %s", DEFAULT_CONFIG_PATH)
config_path = DEFAULT_CONFIG_PATH
if not config_path.exists():
write_default_config()
log.info("default config not found, creating")
log.info("default config not found, creating")
write_default_config()

log.info("using local config file: %s", str(config_path.absolute()))
local_config_data = load_file(config_path)
Expand Down

0 comments on commit 141a4ca

Please sign in to comment.