Skip to content

Commit

Permalink
appending the jarvis envioprnment to the pbs command to execute
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeCernuda committed Oct 17, 2023
1 parent c2b5887 commit ac4ff49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jarvis_util/shell/pbs_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

from jarvis_util.jutil_manager import JutilManager
from jarvis_util.shell.local_exec import LocalExec
from jarvis_util.shell.local_exec import LocalExec, LocalExecInfo
from .exec_info import ExecInfo, ExecType


Expand All @@ -31,6 +31,13 @@ def __init__(self, cmd, exec_info):
self.account = exec_info.account
self.queue = exec_info.queue
self.env_vars = exec_info.env_vars

jarvis_comma_list = ','.join(exec_info.basic_env.keys())
if self.env_vars:
self.env_vars = f'{self.env_vars},{jarvis_comma_list}'
else:
self.env_vars = jarvis_comma_list

super().__init__(self.pbscmd(),
exec_info.mod(env=exec_info.basic_env))

Expand Down

0 comments on commit ac4ff49

Please sign in to comment.