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);
|
configDir = environment.get("HOME", null);
|
||||||
if (configDir !is null)
|
if (configDir !is null)
|
||||||
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
||||||
else
|
if (!exists(configDir))
|
||||||
configDir = "/etc/";
|
configDir = buildPath("/etc/", CONFIG_FILE_NAME);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue