Skip to content

Commit f1f8355

Browse files
committed
Use Popen parameters instead of setting the ENV
1 parent 6c8f103 commit f1f8355

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/interfaces/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,14 +987,13 @@ def run(self, **inputs):
987987
if xvfb_proc.poll() is not None:
988988
raise Exception('Error: Xvfb did not start')
989989
old_displaynum = os.environ['DISPLAY']
990-
os.environ['DISPLAY'] = ':%s' % vdisplay_num
990+
runtime.environ['DISPLAY'] = ':%s' % vdisplay_num
991991

992992
runtime = self._run_interface(runtime)
993993

994994
if self._redirect_x:
995995
xvfb_proc.kill()
996996
xvfb_proc.wait()
997-
os.environ['DISPLAY'] = old_displaynum
998997

999998
outputs = self.aggregate_outputs(runtime)
1000999
runtime.endTime = dt.isoformat(dt.utcnow())

0 commit comments

Comments
 (0)