Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion smartsim/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(
run_args: t.Optional[t.Dict[str, t.Union[int, str, float, None]]] = None,
env_vars: t.Optional[t.Dict[str, t.Optional[str]]] = None,
container: t.Optional[Container] = None,
skip_exe_check: bool = False,
**_kwargs: t.Any,
) -> None:
"""Run parameters for a ``Model``
Expand Down Expand Up @@ -82,7 +83,7 @@ def __init__(
:param container: container type for workload (e.g. "singularity")
"""
# Do not expand executable if running within a container
self.exe = [exe] if container else [expand_exe_path(exe)]
self.exe = [exe] if container or skip_exe_check else [expand_exe_path(exe)]
self.exe_args = exe_args or []
self.run_args = run_args or {}
self.env_vars = env_vars or {}
Expand Down
Loading