Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiro Hrončok <miro@hroncok.cz>2013-01-21 18:26:45 +0400
committerMiro Hrončok <miro@hroncok.cz>2013-01-21 18:26:45 +0400
commitd6be1dfbd9124ed1c35c32a0819bbfa3d9e6759a (patch)
tree95909c420318cbd2e1656803cdf33b7785b050f0 /scripts
parentf56125df96aaf5f33424c537e44d38def01729ef (diff)
Add py prefix to OpenGL and serial. Exit when error.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/linux/cura.py8
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__))