Skip to content

Commit

Permalink
override real.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevc committed Jul 15, 2024
1 parent 13c4306 commit ded0728
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions snakemake_executor_plugin_azure_batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,19 @@ def __post_init__(self):
self.create_batch_pool()
self.create_batch_job()

# override real.py until bugfix is released
def get_envvar_declarations(self):
if self.common_settings.pass_envvar_declarations_to_cmd:
defs = " ".join(
f"{var}={repr(value)}" for var, value in self.envvars.items()
)
if defs:
return f"export {defs} &&"
else:
return ""
else:
return ""

def init_batch_client(self):
"""
Initialize the batch service client from the given credentials
Expand Down

0 comments on commit ded0728

Please sign in to comment.