File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 2525
2626def 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments