Skip to content

Commit 94a3bea

Browse files
committed
fix KeyError when using redirect_x in CommandLineInterface
1 parent e6b46ba commit 94a3bea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,8 @@ def run(self, **inputs):
987987
time.sleep(0.2) # give Xvfb time to start
988988
if xvfb_proc.poll() is not None:
989989
raise Exception('Error: Xvfb did not start')
990-
old_displaynum = os.environ['DISPLAY']
990+
991+
# old_displaynum = os.getenv('DISPLAY')
991992
runtime.environ['DISPLAY'] = ':%s' % vdisplay_num
992993

993994
runtime = self._run_interface(runtime)

0 commit comments

Comments
 (0)