Skip to content

Commit a144cb4

Browse files
committed
Update ProgramArgs.cpp
1 parent b770282 commit a144cb4

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)