- made sure FlatCAM use python3 in Linux (JP's find)

- cgi module is deprecated in Python3, using the recommended module html
as replacement
This commit is contained in:
Marius Stanciu 2018-05-30 15:54:14 +03:00
parent 3b9767cc6f
commit 560e882da0
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
############################################################
# FlatCAM: 2D Post-processing for Manufacturing #
# http://flatcam.org #

View File

@ -3,7 +3,7 @@ Terminal emulator widget.
Shows intput and output text. Allows to enter commands. Supports history.
"""
import cgi
import html
from PyQt4.QtCore import pyqtSignal, Qt
from PyQt4.QtGui import QColor, QKeySequence, QLineEdit, QPalette, \
QSizePolicy, QTextCursor, QTextEdit, \
@ -152,7 +152,7 @@ class TermWidget(QWidget):
"""
assert style in ('in', 'out', 'err')
text = cgi.escape(text)
text = html.escape(text)
text = text.replace('\n', '<br/>')
if style == 'in':