Skip to content

Commit 0d3bbdc

Browse files
committed
Merge pull request #1027 from oesteban/fix/RedirectX
FIX: Interfaces redirecting X crashed if $DISPLAY not defined
2 parents fa0c7f1 + 3aa44c0 commit 0d3bbdc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Next release
22
============
3+
4+
* FIX: Interfaces redirecting X crashed if $DISPLAY not defined (https://github.com/nipy/nipype/pull/1027)
35
* FIX: Bug crashed 'make api' (https://github.com/nipy/nipype/pull/1026)
46
* ENH: Updated antsIntroduction to handle RA and RI registrations (https://github.com/nipy/nipype/pull/1009)
57
* ENH: Updated N4BiasCorrection input spec to include weight image and spline order. Made

nipype/interfaces/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,12 @@ def _get_trait_desc(self, inputs, name, spec):
758758
manhelpstr = ['\t%s' % name]
759759

760760
type_info = spec.full_info(inputs, name, None)
761-
default = ''
762761

762+
default = ''
763763
if spec.usedefault:
764764
default = ', nipype default value: %s' % str(spec.default_value()[1])
765-
766765
line = "(%s%s)" % (type_info, default)
766+
767767
manhelpstr = wrap(line, 70,
768768
initial_indent=manhelpstr[0]+': ',
769769
subsequent_indent='\t\t ')
@@ -991,7 +991,7 @@ def run(self, **inputs):
991991
time.sleep(0.2) # give Xvfb time to start
992992
if xvfb_proc.poll() is not None:
993993
raise Exception('Error: Xvfb did not start')
994-
old_displaynum = os.environ['DISPLAY']
994+
995995
runtime.environ['DISPLAY'] = ':%s' % vdisplay_num
996996

997997
runtime = self._run_interface(runtime)

0 commit comments

Comments
 (0)