Skip to content

Commit

Permalink
fix: Use absolute path to OM if given
Browse files Browse the repository at this point in the history
  • Loading branch information
rogoersTPH committed May 16, 2024
1 parent 85117f3 commit ff0d6a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion R/simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ runSimulations <- function(scenarios = NULL, cmd = "openMalaria", dryRun = FALSE
verbose <- NULL
}

cmd <- ifelse(dryRun == TRUE, cmd, Sys.which(cmd))
if (startsWith(x = cmd, prefix = "/")) {
cmd <- cmd
} else if (startsWith(x = cmd, prefix = "C:/")) {
cmd <- cmd
} else {
cmd <- Sys.which(cmd)
}

scenarios <- file.path(
getCache(x = "scenariosDir"),
if (is.null(scenarios)) {
Expand Down

0 comments on commit ff0d6a4

Please sign in to comment.