Quick and ugly change which fixes slicing with pypy. Cleanup will follow.
parent
3b2a96f33c
commit
df2bd314b5
17
Cura/cura.py
17
Cura/cura.py
|
@ -14,8 +14,6 @@ import sys
|
||||||
import warnings
|
import warnings
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
import wx._core
|
|
||||||
|
|
||||||
from Cura.util import profile
|
from Cura.util import profile
|
||||||
|
|
||||||
__author__ = 'Daid'
|
__author__ = 'Daid'
|
||||||
|
@ -46,13 +44,6 @@ 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'
|
||||||
|
|
||||||
|
|
||||||
class CuraApp(wx.App):
|
|
||||||
def MacOpenFile(self, path):
|
|
||||||
try:
|
|
||||||
pass
|
|
||||||
except Exception as e:
|
|
||||||
warnings.warn("File at {p} cannot be read: {e}".format(p=path, e=str(e)))
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = OptionParser(usage="usage: %prog [options] <filename>.stl")
|
parser = OptionParser(usage="usage: %prog [options] <filename>.stl")
|
||||||
parser.add_option("-i", "--ini", action="store", type="string", dest="profileini",
|
parser.add_option("-i", "--ini", action="store", type="string", dest="profileini",
|
||||||
|
@ -90,8 +81,16 @@ def main():
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
profile.putPreference('lastFile', ';'.join(args))
|
profile.putPreference('lastFile', ';'.join(args))
|
||||||
|
|
||||||
|
import wx._core
|
||||||
from Cura.gui import splashScreen
|
from Cura.gui import splashScreen
|
||||||
|
|
||||||
|
class CuraApp(wx.App):
|
||||||
|
def MacOpenFile(self, path):
|
||||||
|
try:
|
||||||
|
pass
|
||||||
|
except Exception as e:
|
||||||
|
warnings.warn("File at {p} cannot be read: {e}".format(p=path, e=str(e)))
|
||||||
|
|
||||||
def mainWindowRunCallback(splash):
|
def mainWindowRunCallback(splash):
|
||||||
from Cura.gui import mainWindow
|
from Cura.gui import mainWindow
|
||||||
if splash is not None:
|
if splash is not None:
|
||||||
|
|
Loading…
Reference in New Issue