Skip to content

Commit

Permalink
configure cwrsync for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pjknowles committed Feb 24, 2024
1 parent a44e973 commit 998996a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sjef/util/Job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ sjef::util::Job::Job(const sjef::Project& project)
if (oldpath.substr(0,needed_path.length()) != needed_path)
setenv("PATH", (needed_path + oldpath).c_str(), 1);
#endif
#ifdef WIN32
auto conda_prefix = getenv("CONDA_PREFIX");
if (conda_prefix != NULL) {
setenv("PATH", (std::string(conda_prefix) + "\\bin;" + getenv("PATH"));
}
#endif
}

std::tuple<bool, std::string, std::string> sjef::util::Job::push_rundir(int verbosity) {
Expand Down

0 comments on commit 998996a

Please sign in to comment.