Skip to content

Commit

Permalink
Merge pull request #37 from JaimeCernuda/master
Browse files Browse the repository at this point in the history
appending the jarvis envioprnment to the pbs command to execute
  • Loading branch information
JaimeCernuda authored Oct 17, 2023
2 parents eb2d51e + ac4ff49 commit fc4a7dc
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 fc4a7dc

Please sign in to comment.