We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd3995a commit 5a12e61Copy full SHA for 5a12e61
snakemake_executor_plugin_slurm/utils.py
@@ -6,11 +6,11 @@
6
def delete_slurm_environment():
7
"""
8
Function to delete all environment variables
9
- starting with 'SLURM_'. The parent shell, will
10
- still have the this environment. Needed to
+ starting with 'SLURM_'. The parent shell will
+ still have this environment. This is needed to
11
submit within a SLURM job context to avoid
12
conflicting environments.
13
14
for var in os.environ:
15
if "SLURM" in var:
16
- os.unsetenv(var)
+ del os.environ[var]
0 commit comments