From f01c0ddf130b533fb65766198c0740e1e1f151d9 Mon Sep 17 00:00:00 2001 From: Isabell Pflug Date: Tue, 31 May 2022 10:34:01 +0200 Subject: [PATCH] added alternative spelling for the labcontrol configuration file --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4f7b771..cc717a7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { unsigned long i = 0; // hard coded, you can edit here, if you prefer a different location for your config file: - std::vector filenames = {"/usr/local/etc/Labcontrol/Labcontrol.json", "/etc/Labcontrol/Labcontrol.json", "./Labcontrol.json"}; + std::vector filenames = {"/usr/local/etc/Labcontrol/labcontrol.json", "/etc/Labcontrol/labcontrol.json", "./labcontrol.json", "/usr/local/etc/Labcontrol/Labcontrol.json", "/etc/Labcontrol/Labcontrol.json", "./Labcontrol.json"}; for (i; i < filenames.size(); i++) { // if a configuration file was found, the loop breaks std::ifstream f(filenames[i].c_str()); pt::ptree root;