Fill default configs before pre-processing

This commit is contained in:
Alex Ling 2021-02-03 05:27:41 +00:00
parent ffd5f4454b
commit 2b3b2eb8ba

View File

@ -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. " \