fix in round corners§

This commit is contained in:
Mario Voigt 2021-10-04 22:39:08 +02:00
parent 230006e729
commit 95222e6797

View File

@ -64,7 +64,11 @@ Information Technology and Control, 35(4), 2006 pp. 371-378.
""" """
import inkex 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 __version__ = '1.4' # Keep in sync with round_corners.inx line 16
debug = False # True: babble on controlling tty debug = False # True: babble on controlling tty
@ -77,9 +81,6 @@ class RoundCorners(inkex.EffectExtension):
def add_arguments(self, pars): # an __init__ in disguise ... def add_arguments(self, pars): # an __init__ in disguise ...
try: try:
self.tty = open("/dev/tty", 'w') self.tty = open("/dev/tty", 'w')
except:
try:
self.tty = open("CON:", 'w') # windows. Does this work???
except: 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) if debug: print("RoundedCorners ...", file=self.tty)