diff options
author | Miro Hrončok <miro@hroncok.cz> | 2013-01-21 18:26:45 +0400 |
---|---|---|
committer | Miro Hrončok <miro@hroncok.cz> | 2013-01-21 18:26:45 +0400 |
commit | d6be1dfbd9124ed1c35c32a0819bbfa3d9e6759a (patch) | |
tree | 95909c420318cbd2e1656803cdf33b7785b050f0 /scripts | |
parent | f56125df96aaf5f33424c537e44d38def01729ef (diff) |
Add py prefix to OpenGL and serial. Exit when error.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/linux/cura.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/linux/cura.py b/scripts/linux/cura.py index e634076229..c055fdebf4 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__)) |