From 2b3b2eb8ba1945f566dc8611fc86d81075228b84 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Wed, 3 Feb 2021 05:27:41 +0000 Subject: [PATCH] Fill default configs before pre-processing --- src/config.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cr b/src/config.cr index 408b554..a52d0a3 100644 --- a/src/config.cr +++ b/src/config.cr @@ -52,9 +52,9 @@ class Config cfg_path = File.expand_path path, home: true if File.exists? cfg_path config = self.from_yaml File.read cfg_path - config.preprocess config.path = path config.fill_defaults + config.preprocess return config end puts "The config file #{cfg_path} does not exist. " \