From 95222e6797bbff8e8fa4b72fa9599ae83c460aff Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Mon, 4 Oct 2021 22:39:08 +0200 Subject: [PATCH] =?UTF-8?q?fix=20in=20round=20corners=C2=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fablabchemnitz/round_corners/round_corners.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extensions/fablabchemnitz/round_corners/round_corners.py b/extensions/fablabchemnitz/round_corners/round_corners.py index e597e663..83488464 100644 --- a/extensions/fablabchemnitz/round_corners/round_corners.py +++ b/extensions/fablabchemnitz/round_corners/round_corners.py @@ -64,7 +64,11 @@ Information Technology and Control, 35(4), 2006 pp. 371-378. """ import inkex -import sys, math, pprint, copy +import sys +import math +import pprint +import copy +import os __version__ = '1.4' # Keep in sync with round_corners.inx line 16 debug = False # True: babble on controlling tty @@ -78,10 +82,7 @@ class RoundCorners(inkex.EffectExtension): try: self.tty = open("/dev/tty", 'w') except: - try: - self.tty = open("CON:", 'w') # windows. Does this work??? - except: - self.tty = open(os.devnull, 'w') # '/dev/null' for POSIX, 'nul' for Windows. + self.tty = open(os.devnull, 'w') # '/dev/null' for POSIX, 'nul' for Windows. if debug: print("RoundedCorners ...", file=self.tty) self.nodes_inserted = {} self.eps = 0.00001 # avoid division by zero