ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/pyradlib/pyrad_proc.py
(Generate patch)

Comparing ray/src/common/pyradlib/pyrad_proc.py (file contents):
Revision 1.3 by schorsch, Sat Apr 2 15:52:48 2016 UTC vs.
Revision 1.4 by schorsch, Tue Apr 19 21:17:41 2016 UTC

# Line 79 | Line 79 | class ProcMixin():
79                  if _in == PIPE:
80                          stdin = _in
81                  elif isinstance(_in, self._strtypes):
82 <                        if self.donothing: stdin = None
83 <                        else: stdin = open(_in, 'rb')
82 >                        if not getattr(self, 'donothing', None):
83 >                                stdin = open(_in, 'rb')
84 >                        else: stdin = None
85                          instr = ' < "%s"' % _in
86                  elif hasattr(_in, 'read'):
87                          stdin = _in
# Line 90 | Line 91 | class ProcMixin():
91                  if out == PIPE:
92                          stdout = out
93                  elif isinstance(out, self._strtypes):
94 <                        if self.donothing: stdout = None
95 <                        else: stdout = open(out, 'wb')
94 >                        if not getattr(self, 'donothing', None):
95 >                                stdout = open(out, 'wb')
96 >                        else: stdout = None
97                          outstr = ' > "%s"' % out
98                  elif hasattr(out, 'write'):
99                          stdout = out

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines