Skip to content

Commit

Permalink
Update ProgramArgs.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoomnoo committed May 1, 2023
1 parent b770282 commit a144cb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ProgramArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ bool ProcessProgramArgs(int argc , const char** argv, ProgramCmdLineOptions& pro

if(hasExeConfigs)
{
const std::string exeConfPath = std::filesystem::current_path().string() + "\\" + "exesConfig.ecfg";
const std::filesystem::path exePath = argv[0];
const std::string exeConfPath = exePath.parent_path().string() + "\\" + "exesConfig.ecfg";
std::ifstream file(exeConfPath);
if (file.is_open())
{
Expand Down

0 comments on commit a144cb4

Please sign in to comment.