Skip to content

Commit

Permalink
set_verbatim method instead
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Feb 11, 2024
1 parent 7821a66 commit 23e6e73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sisyphus/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def update_rqmt(self, task_name, rqmt):

def set_env(self, key: str, value: str):
"""this environment var will be set at job startup"""
self._sis_environment.set_var(key, value)
self._sis_environment.set_verbatim(key, value)

def tasks(self) -> Iterator[Task]:
"""
Expand Down
4 changes: 2 additions & 2 deletions sisyphus/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ def set(self, var, value=None):
else:
self.set_vars[var] = value

def set_var(self, key: str, value: str, *, allow_env_substitute: bool = False):
(self.set_vars if allow_env_substitute else self.set_vars_verbatim)[key] = value
def set_verbatim(self, key: str, value: str):
self.set_vars_verbatim[key] = value

def modify_environment(self):
import os
Expand Down

0 comments on commit 23e6e73

Please sign in to comment.