import sys
import platform
-
from optparse import OptionParser
-from newui import sliceRun
+
+from gui import sliceRun
__author__ = 'Daid'
__credits__ = """
if len( args ) > 0:
sliceRun.runSlice(args)
else:
- from newui import mainWindow
+ from gui import mainWindow
mainWindow.main()
if __name__ == '__main__':
import os, sys
import types, math
-from newui import profile
+from gui import profile
from fabmetheus_utilities import archive
def DEFSET(setting):
import wx, os, platform, types
import ConfigParser
-from newui import configBase
-from newui import preview3d
-from newui import sliceProgessPanel
-from newui import alterationPanel
-from newui import validators
+from gui import configBase
+from gui import preview3d
+from gui import sliceProgessPanel
+from gui import alterationPanel
+from gui import validators
class advancedConfigWindow(configBase.configWindowBase):
"Advanced configuration window"
import wx\r
import sys,math,threading,os\r
\r
-from newui import profile\r
+from gui import profile\r
\r
class alterationPanel(wx.Panel):\r
def __init__(self, parent):\r
import wx, os, sys, platform, types
-from newui import validators
-from newui import profile
+from gui import validators
+from gui import profile
def main():
app = wx.App(False)
import wx, os, platform, types, webbrowser, threading, time, re\r
import wx.wizard\r
\r
-from newui import machineCom\r
-from newui import profile\r
+from gui import machineCom\r
+from gui import profile\r
\r
class InfoPage(wx.wizard.WizardPageSimple):\r
def __init__(self, parent, title):\r
import re
import os
-from newui import util3d
+from gui import util3d
class gcodePath():
def __init__(self, newType, pathType, layerNr, startPoint):
from avr_isp import ispBase
from avr_isp import intelHex
-from newui import profile
+from gui import profile
try:
import _winreg
import wx, os, platform, types, webbrowser
-from newui import configBase
-from newui import advancedConfig
-from newui import preview3d
-from newui import sliceProgessPanel
-from newui import alterationPanel
-from newui import validators
-from newui import preferencesDialog
-from newui import configWizard
-from newui import machineCom
-from newui import profile
-from newui import printWindow
+from gui import configBase
+from gui import advancedConfig
+from gui import preview3d
+from gui import sliceProgessPanel
+from gui import alterationPanel
+from gui import validators
+from gui import preferencesDialog
+from gui import configWizard
+from gui import machineCom
+from gui import profile
+from gui import printWindow
def main():
app = wx.App(False)
import wx, os, platform, types\r
import ConfigParser\r
\r
-from newui import configBase\r
-from newui import validators\r
-from newui import machineCom\r
+from gui import configBase\r
+from gui import validators\r
+from gui import machineCom\r
\r
class preferencesDialog(configBase.configWindowBase):\r
def __init__(self, parent):\r
print "Failed to find PyOpenGL: http://pyopengl.sourceforge.net/"\r
hasOpenGLlibs = False\r
\r
-from newui import profile\r
-from newui import gcodeInterpreter\r
-from newui import util3d\r
+from gui import profile\r
+from gui import gcodeInterpreter\r
+from gui import util3d\r
\r
from fabmetheus_utilities.fabmetheus_tools import fabmetheus_interpret\r
from fabmetheus_utilities.vector3 import Vector3\r
import subprocess
import time
-from newui import sliceRun
+from gui import sliceRun
class sliceProgessPanel(wx.Panel):
def __init__(self, mainWindow, parent, filename):
self.start()
def run(self):
+ print sliceRun.getSliceCommand(self.filename)
p = subprocess.Popen(sliceRun.getSliceCommand(self.filename), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
line = p.stdout.readline()
maxValue = 1
import platform, os, subprocess, sys
-from skeinforge_application.skeinforge_utilities import skeinforge_craft
-from newui import profile
+from cura_sf.skeinforge_application.skeinforge_utilities import skeinforge_craft
+from gui import profile
def getPyPyExe():
"Return the path to the pypy executable if we can find it. Else return False"
pypyExe = getPyPyExe()
if pypyExe == False:
pypyExe = sys.executable
- return [pypyExe, os.path.join(sys.path[0], os.path.split(sys.argv[0])[1]), filename]
+ return [pypyExe, os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", os.path.split(sys.argv[0])[1])), filename]
import types
import math
-from newui import profile
+from gui import profile
SUCCESS = 0
WARNING = 1