Merge pull request #204 from Dicebot/fixup-global-conf
Fixup for /etc/dcd.conf support
This commit is contained in:
commit
80b4e0d534
|
|
@ -250,8 +250,8 @@ string getConfigurationLocation()
|
|||
configDir = environment.get("HOME", null);
|
||||
if (configDir !is null)
|
||||
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
||||
else
|
||||
configDir = "/etc/";
|
||||
if (!exists(configDir))
|
||||
configDir = buildPath("/etc/", CONFIG_FILE_NAME);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue