Skip to content

Commit 6b17b1e

Browse files
committed
rf: Remove environment restore function that has no effect
1 parent 4bcd1b6 commit 6b17b1e

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

sdcflows/cli/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
def main(argv=None):
2727
"""Entry point for SDCFlows' CLI."""
28-
import atexit
2928
import gc
3029
import os
3130
import sys
@@ -34,8 +33,6 @@ def main(argv=None):
3433
from sdcflows import config
3534
from sdcflows.cli.parser import parse_args
3635

37-
atexit.register(config.restore_env)
38-
3936
# Run parser
4037
parse_args(argv)
4138

sdcflows/config.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,3 @@ def _process_initializer(config_file: Path):
647647

648648
# Set the maximal number of threads per process
649649
os.environ['OMP_NUM_THREADS'] = f'{config.nipype.omp_nthreads}'
650-
651-
652-
def restore_env():
653-
"""Restore the original environment."""
654-
655-
for k in os.environ.keys():
656-
del os.environ[k]
657-
658-
for k, v in environment._pre_sdcflows.items():
659-
os.environ[k] = v

0 commit comments

Comments
 (0)