Skip to content

Commit b0a6caa

Browse files
committed
Merge branch 'main' into Version2
2 parents c442adf + a144cb4 commit b0a6caa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ProgramArgs.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ bool ProcessProgramArgs(int argc , const char** argv, ProgramCmdLineOptions& pro
7070

7171
if(hasExeConfigs)
7272
{
73-
const std::string exeConfPath = std::filesystem::current_path().string() + "\\" + "exesConfig.ecfg";
73+
const std::filesystem::path exePath = argv[0];
74+
const std::string exeConfPath = exePath.parent_path().string() + "\\" + "exesConfig.ecfg";
7475
std::ifstream file(exeConfPath);
7576
if (file.is_open())
7677
{

0 commit comments

Comments
 (0)