diff --git a/src/config.cpp b/src/config.cpp index aa370efbbe45a7ce061f40ccb40328bcf64781bc..5999af3eaf8bd05624bbf16b76d5a83f21806d0f 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -34,6 +34,12 @@ bool Config::load(const std::string &configfile, boost::program_options::options bool ret = load(ifs, opts); ifs.close(); + char path[PATH_MAX] = ""; + if (m_file.find_first_of("/") != 0) { + getcwd(path, PATH_MAX); + m_file = std::string(path) + "/" + m_file; + } + return ret; }