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 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
|
||||||
@ -78,10 +82,7 @@ class RoundCorners(inkex.EffectExtension):
|
|||||||
try:
|
try:
|
||||||
self.tty = open("/dev/tty", 'w')
|
self.tty = open("/dev/tty", 'w')
|
||||||
except:
|
except:
|
||||||
try:
|
self.tty = open(os.devnull, 'w') # '/dev/null' for POSIX, 'nul' for Windows.
|
||||||
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)
|
if debug: print("RoundedCorners ...", file=self.tty)
|
||||||
self.nodes_inserted = {}
|
self.nodes_inserted = {}
|
||||||
self.eps = 0.00001 # avoid division by zero
|
self.eps = 0.00001 # avoid division by zero
|
||||||
|
Reference in New Issue
Block a user