Skip to content

Commit

Permalink
fix: support config being specified with a full path
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 21, 2023
1 parent 91d7e59 commit 4e254d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ void configure(const std::wstring& filename)
try {
initial = clean_path(boost::filesystem::initial_path().wstring());

std::wstring fullpath = filename;
if (!boost::filesystem::exists(fullpath)) {
fullpath = initial + L"/" + filename;
}

boost::filesystem::wifstream file(initial + L"/" + filename);
boost::property_tree::read_xml(file,
pt,
Expand Down

0 comments on commit 4e254d0

Please sign in to comment.