Windows: avoid printing errors from filters.
Broke rclzip because of message going to stdout (why?).
This commit is contained in:
parent
bce6ab8a4c
commit
ee07e724a2
@ -89,7 +89,10 @@ class RclExecM:
|
||||
self.errfout = sys.stderr
|
||||
|
||||
def rclog(self, s, doexit = 0, exitvalue = 1):
|
||||
print("RCLMFILT: %s: %s" % (self.myname, s), file=self.errfout)
|
||||
# On windows, and I think that it changed quite recently (Qt change?)
|
||||
# we get stdout as stderr. So don't write at all
|
||||
if sys.platform != "win32":
|
||||
print("RCLMFILT: %s: %s" % (self.myname, s), file=self.errfout)
|
||||
if doexit:
|
||||
sys.exit(exitvalue)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user