diff options
author | nallath <nallath@gmail.com> | 2014-03-04 13:49:39 +0400 |
---|---|---|
committer | nallath <nallath@gmail.com> | 2014-03-04 13:49:39 +0400 |
commit | 7320b6847a81eb47e0232e3cefd424d84379a0fb (patch) | |
tree | db63d8a105207335f93189445c57ff926e5d9f03 /scripts | |
parent | aeaec38bdb4490eef154cb81d87759884711fa2f (diff) |
Fixes #695
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/linux/cura.py | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/scripts/linux/cura.py b/scripts/linux/cura.py index caf264d2df..3a0162e55f 100755 --- a/scripts/linux/cura.py +++ b/scripts/linux/cura.py @@ -11,19 +11,20 @@ try: import numpy 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 e.message[0:16] == 'No module named ': + module = e.message[16:] + + 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 + if module == 'power': + print "Install from: https://github.com/GreatFruitOmsk/Power" + else: + print "Try sudo easy_install " + module + print e.message exit(1) |