Skip to content

Commit

Permalink
Sub _chdir for chdir on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornung67 committed Aug 15, 2024
1 parent e829d80 commit 2331d02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,11 @@ void Executor::outputRunData()
string out_fprefix;
string outdir = recursiveMkdir(run_params.getOutputDirName());
if ( !outdir.empty() ) {
#if defined(_WIN32)
_chdir(outdir.c_str());
#else
chdir(outdir.c_str());
#endif
}
out_fprefix = "./" + run_params.getOutputFilePrefix();

Expand Down

0 comments on commit 2331d02

Please sign in to comment.