chiark / gitweb /
Split gui to gui and util directories.
[cura.git] / Cura / cura.py
1 #!/usr/bin/python
2 """
3 This page is in the table of contents.
4 ==Overview==
5 ===Introduction===
6 Cura is a GPL tool chain to forge a gcode skein for a model. Based on Skeinforge.
7
8 The slicing code is the same as Skeinforge. But the UI has been revamped to be... sane.
9
10 """
11
12 from __future__ import absolute_import
13 import __init__
14
15 import sys
16 import platform
17 from optparse import OptionParser
18
19 from util import sliceRun
20
21 __author__ = 'Daid'
22 __credits__ = """
23 Enrique Perez (perez_enrique@yahoo.com)
24 Adrian Bowyer <http://forums.reprap.org/profile.php?12,13>
25 Brendan Erwin <http://forums.reprap.org/profile.php?12,217>
26 Greenarrow <http://forums.reprap.org/profile.php?12,81>
27 Ian England <http://forums.reprap.org/profile.php?12,192>
28 John Gilmore <http://forums.reprap.org/profile.php?12,364>
29 Jonwise <http://forums.reprap.org/profile.php?12,716>
30 Kyle Corbitt <http://forums.reprap.org/profile.php?12,90>
31 Michael Duffin <http://forums.reprap.org/profile.php?12,930>
32 Marius Kintel <http://reprap.soup.io/>
33 Nophead <http://www.blogger.com/profile/12801535866788103677>
34 PJR <http://forums.reprap.org/profile.php?12,757>
35 Reece.Arnott <http://forums.reprap.org/profile.php?12,152>
36 Wade <http://forums.reprap.org/profile.php?12,489>
37 Xsainnz <http://forums.reprap.org/profile.php?12,563>
38 Zach Hoeken <http://blog.zachhoeken.com/>
39
40 Organizations:
41 Art of Illusion <http://www.artofillusion.org/>"""
42
43 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
44
45 def main():
46         parser = OptionParser()
47         (options, args) = parser.parse_args()
48         sys.argv = [sys.argv[0]] + args
49         if len( args ) > 0:
50                 sliceRun.runSlice(args)
51         else:
52                 from gui import mainWindow
53                 mainWindow.main()
54
55 if __name__ == '__main__':
56         main()
57