mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Fill default configs before pre-processing
This commit is contained in:
parent
ffd5f4454b
commit
2b3b2eb8ba
@ -52,9 +52,9 @@ class Config
|
|||||||
cfg_path = File.expand_path path, home: true
|
cfg_path = File.expand_path path, home: true
|
||||||
if File.exists? cfg_path
|
if File.exists? cfg_path
|
||||||
config = self.from_yaml File.read cfg_path
|
config = self.from_yaml File.read cfg_path
|
||||||
config.preprocess
|
|
||||||
config.path = path
|
config.path = path
|
||||||
config.fill_defaults
|
config.fill_defaults
|
||||||
|
config.preprocess
|
||||||
return config
|
return config
|
||||||
end
|
end
|
||||||
puts "The config file #{cfg_path} does not exist. " \
|
puts "The config file #{cfg_path} does not exist. " \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user