Commit 7c0c514e authored by Guillaume Seguin's avatar Guillaume Seguin

Work on backwards compatibility

parent b7b03e33
...@@ -15,7 +15,12 @@ ...@@ -15,7 +15,12 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Printrun. If not, see <http://www.gnu.org/licenses/>. # along with Printrun. If not, see <http://www.gnu.org/licenses/>.
import os, queue, re import os, re
try:
import queue
except ImportError:
import Queue as queue
from printrun.printrun_utils import install_locale from printrun.printrun_utils import install_locale
install_locale('pronterface') install_locale('pronterface')
...@@ -23,15 +28,14 @@ install_locale('pronterface') ...@@ -23,15 +28,14 @@ install_locale('pronterface')
try: try:
import wx import wx
except: except:
print(_("WX is not installed. This program requires WX to run.")) print(_("wxPython is not installed. This program requires wxPython to run."))
raise raise
import sys, glob, time, datetime, threading, traceback, io, subprocess import sys, glob, time, datetime, threading, traceback, subprocess
from io import StringIO
from printrun.pronterface_widgets import * from printrun.pronterface_widgets import *
from serial import SerialException from serial import SerialException
StringIO = cStringIO
winsize = (800, 500) winsize = (800, 500)
layerindex = 0 layerindex = 0
if os.name == "nt": if os.name == "nt":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment