fix in round corners§
This commit is contained in:
parent
230006e729
commit
95222e6797
@ -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
|
||||
@ -77,9 +81,6 @@ class RoundCorners(inkex.EffectExtension):
|
||||
def add_arguments(self, pars): # an __init__ in disguise ...
|
||||
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.
|
||||
if debug: print("RoundedCorners ...", file=self.tty)
|
||||
|
Reference in New Issue
Block a user