aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_read_config_files.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-01-12 20:51:12 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit45e1b786144b8ef0a70a235f8a1a89e90a752d8f (patch)
treee4e9d787fe9f0bce330a8db407e949aa9bf5ee8e /src/sdp/ao_read_config_files.d
parentdom structure, levels marked up & collapsed (use e.g. in epub toc) (diff)
0.11.0 improved message passing, using templates
Diffstat (limited to 'src/sdp/ao_read_config_files.d')
-rw-r--r--src/sdp/ao_read_config_files.d9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sdp/ao_read_config_files.d b/src/sdp/ao_read_config_files.d
index 34b858b..6308df2 100644
--- a/src/sdp/ao_read_config_files.d
+++ b/src/sdp/ao_read_config_files.d
@@ -13,10 +13,13 @@ template SiSUconfigIn() {
struct ConfigIn {
private import std.file;
final private string readInConfigFile(string conf_sdl) {
+ string dot_pwd = chainPath(to!string(environment["PWD"]), ".sisu").array;
+ string underscore_pwd = chainPath(to!string(environment["PWD"]), "_sisu").array;
+ string dot_home = chainPath(to!string(environment["HOME"]), ".sisu").array;
string[] possible_config_path_locations = [
- environment["PWD"] ~ "/.sisu",
- environment["PWD"] ~ "/_sisu",
- environment["HOME"] ~ "/.sisu",
+ dot_pwd,
+ underscore_pwd,
+ dot_home,
"/etc/sisu"
];
string config_file_str;