mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-06 00:06:03 +08:00
Merge commit '870c4952fdb3268f5d4b6359d2e8046a6bb8df4f'
This commit is contained in:
commit
3ccd965f3f
6
.gitignore
vendored
6
.gitignore
vendored
@ -3,7 +3,7 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*.zip
|
*.zip
|
||||||
*.exe
|
*.exe
|
||||||
osx64-SkeinPyPy-NewUI*
|
osx64-Cura-NewUI*
|
||||||
win32-SkeinPyPy-NewUI*
|
win32-Cura-NewUI*
|
||||||
linux-SkeinPyPy-NewUI*
|
linux-Cura-NewUI*
|
||||||
Printrun
|
Printrun
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
This page is in the table of contents.
|
This page is in the table of contents.
|
||||||
==Overview==
|
==Overview==
|
||||||
===Introduction===
|
===Introduction===
|
||||||
SkeinPyPy is a GPL tool chain to forge a gcode skein for a model. Based on Skeinforge.
|
Cura is a GPL tool chain to forge a gcode skein for a model. Based on Skeinforge.
|
||||||
|
|
||||||
The slicing code is the same as Skeinforge. But the UI has been revamped to be... sane.
|
The slicing code is the same as Skeinforge. But the UI has been revamped to be... sane.
|
||||||
|
|
||||||
@ -14,9 +14,10 @@ import __init__
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from newui import sliceRun
|
|
||||||
|
from util import profile
|
||||||
|
from util import sliceRun
|
||||||
|
|
||||||
__author__ = 'Daid'
|
__author__ = 'Daid'
|
||||||
__credits__ = """
|
__credits__ = """
|
||||||
@ -43,13 +44,15 @@ Art of Illusion <http://www.artofillusion.org/>"""
|
|||||||
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
|
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = OptionParser()
|
parser = OptionParser(usage="usage: %prog [options] <filename>.stl")
|
||||||
|
parser.add_option("-p", "--profile", action="store", type="string", dest="profile", help="Use these profile settings instead of loading current_profile.ini")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
sys.argv = [sys.argv[0]] + args
|
if options.profile != None:
|
||||||
|
profile.loadGlobalProfileFromString(options.profile)
|
||||||
if len( args ) > 0:
|
if len( args ) > 0:
|
||||||
sliceRun.runSlice(args)
|
sliceRun.runSlice(args)
|
||||||
else:
|
else:
|
||||||
from newui import mainWindow
|
from gui import mainWindow
|
||||||
mainWindow.main()
|
mainWindow.main()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user