changed directory path for the labcontrol configuration file from upper case to lower case

master
Isabell Pflug 2 years ago
parent f01c0ddf13
commit f1ae497626

@ -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<std::string> 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"};
std::vector<std::string> 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;

Loading…
Cancel
Save