Skip to content

Commit

Permalink
Also search for DUB settings file in ../etc/dub/. Fixes #895.
Browse files Browse the repository at this point in the history
The search happens relative to the executable file. This also contains two small refactorings to prepare for a separation of configuration files and cache files, which currently reside in the same folder.
  • Loading branch information
s-ludwig committed Jul 12, 2016
1 parent 6e0d048 commit 87afd98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/dub/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class Dub {

m_config = new DubConfig(jsonFromFile(m_dirs.userSettings ~ "settings.json", true), null);
m_config = new DubConfig(jsonFromFile(m_dirs.systemSettings ~ "settings.json", true), m_config);
m_config = new DubConfig(jsonFromFile(Path(thisExePath) ~ "../etc/dub/settings.json", true), m_config);

determineDefaultCompiler();
}
Expand Down

0 comments on commit 87afd98

Please sign in to comment.