Skip to content

Commit

Permalink
Don't open tty we don't use anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
florianfesti committed Aug 27, 2023
1 parent 80f97a5 commit 2ae5a11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions boxes/gears.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ class Gears():
def __init__(self, boxes, **kw) -> None:
# an alternate way to get debug info:
# could use inkex.debug(string) instead...
try:
self.tty = open("/dev/tty", 'w')
except:
self.tty = open(devnull, 'w') # '/dev/null' for POSIX, 'nul' for Windows.
# print >>self.tty, "gears-dev " + __version__
#try:
# self.tty = open("/dev/tty", 'w')
#except:
# self.tty = open(devnull, 'w') # '/dev/null' for POSIX, 'nul' for Windows.
# # print >>self.tty, "gears-dev " + __version__

self.boxes = boxes
self.OptionParser = OptionParser()
Expand Down

0 comments on commit 2ae5a11

Please sign in to comment.