chiark / gitweb /
Add wipe tower size setting.
[cura.git] / scripts / linux / cura.py
1 #!/usr/bin/python
2
3 import os, sys
4
5 sys.path.insert(1, os.path.dirname(__file__))
6
7 try:
8     import OpenGL
9     import wx
10     import serial
11     import numpy
12     import power
13 except ImportError as e:
14     module = e.message.lstrip('No module named ')
15     
16     if module == 'OpenGL':
17         module = 'PyOpenGL'
18     elif module == 'serial':
19         module = 'pyserial'
20     
21     print 'Requires ' + module
22
23     if module == 'power':
24         print "Install from: https://github.com/GreatFruitOmsk/Power"
25     else:
26         print "Try sudo easy_install " + module
27     
28     exit(1)
29
30
31 import Cura.cura as cura
32
33 cura.main()