From: Miro HronĨok Date: Mon, 21 Jan 2013 14:26:45 +0000 (+0100) Subject: Add py prefix to OpenGL and serial. Exit when error. X-Git-Tag: 13.03~90^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d6be1dfbd9124ed1c35c32a0819bbfa3d9e6759a;p=cura.git Add py prefix to OpenGL and serial. Exit when error. --- 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__))