Checking for full path of new config file location

This commit is contained in:
Sascha Andres 2016-12-15 07:11:20 +01:00
parent e866bad23d
commit b60885c429
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ type Resources struct {
// Read from the configuration file // Read from the configuration file
func (s *Settings) Read(out interface{}) error { func (s *Settings) Read(out interface{}) error {
localConfigPath := s.Resources.Config localConfigPath := s.Resources.Config
if _, err := os.Stat(".realize/"); err == nil { if _, err := os.Stat(".realize/" + s.Resources.Config); err == nil {
localConfigPath = ".realize/" + s.Resources.Config localConfigPath = ".realize/" + s.Resources.Config
} }
content, err := s.Stream(localConfigPath) content, err := s.Stream(localConfigPath)