Skip to content

Commit d2b3d02

Browse files
committed
FIX: Canonicalize environment in deprecated version_from_command()
1 parent 77913ee commit d2b3d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ... import config, logging, LooseVersion
2727
from ...utils.provenance import write_provenance
2828
from ...utils.misc import str2bool, rgetcwd
29-
from ...utils.filemanip import split_filename, which, get_dependencies
29+
from ...utils.filemanip import split_filename, which, get_dependencies, canonicalize_env
3030
from ...utils.subprocess import run_command
3131

3232
from ...external.due import due
@@ -763,7 +763,7 @@ def version_from_command(self, flag="-v", cmd=None):
763763
proc = sp.Popen(
764764
" ".join((cmd, flag)),
765765
shell=True,
766-
env=env,
766+
env=canonicalize_env(env),
767767
stdout=sp.PIPE,
768768
stderr=sp.PIPE,
769769
)

0 commit comments

Comments
 (0)