From d6be1dfbd9124ed1c35c32a0819bbfa3d9e6759a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 21 Jan 2013 15:26:45 +0100 Subject: [PATCH] Add py prefix to OpenGL and serial. Exit when error. --- scripts/linux/cura.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/linux/cura.py b/scripts/linux/cura.py index e6340762..c055fdeb 100755 --- a/scripts/linux/cura.py +++ b/scripts/linux/cura.py @@ -10,12 +10,20 @@ try: import power except ImportError as e: module = e.message.lstrip('No module named ') + + if module == 'OpenGL': + module = 'PyOpenGL' + elif module == 'serial': + module = 'pyserial' + print 'Requires ' + module if module == 'power': print "Install from: https://github.com/GreatFruitOmsk/Power" else: print "Try sudo easy_install " + module + + exit(1) sys.path.insert(1, os.path.dirname(__file__)) -- 2.30.2