Split gui to gui and util directories.

master
daid 2012-03-28 14:26:40 +02:00
parent 5d531a7a00
commit 405f4880cd
16 changed files with 23 additions and 14 deletions

View File

@ -16,7 +16,7 @@ import sys
import platform
from optparse import OptionParser
from gui import sliceRun
from util import sliceRun
__author__ = 'Daid'
__credits__ = """

9
Cura/cura_sf/__init__.py Normal file
View File

@ -0,0 +1,9 @@
#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.
import os
import sys
numberOfLevelsDeepInPackageHierarchy = 1
packageFilePath = os.path.abspath(__file__)
for level in range( numberOfLevelsDeepInPackageHierarchy + 1 ):
packageFilePath = os.path.dirname( packageFilePath )
if packageFilePath not in sys.path:
sys.path.insert( 0, packageFilePath )

View File

@ -10,7 +10,7 @@ import __init__
import os, sys
import types, math
from gui import profile
from util import profile
from fabmetheus_utilities import archive
def DEFSET(setting):

View File

@ -1,7 +1,7 @@
import wx
import sys,math,threading,os
from gui import profile
from util import profile
class alterationPanel(wx.Panel):
def __init__(self, parent):

View File

@ -4,7 +4,7 @@ import __init__
import wx, os, sys, platform, types
from gui import validators
from gui import profile
from util import profile
def main():
app = wx.App(False)

View File

@ -5,7 +5,7 @@ import wx, os, platform, types, webbrowser, threading, time, re
import wx.wizard
from gui import machineCom
from gui import profile
from util import profile
class InfoPage(wx.wizard.WizardPageSimple):
def __init__(self, parent, title):

View File

@ -9,7 +9,7 @@ from avr_isp import stk500v2
from avr_isp import ispBase
from avr_isp import intelHex
from gui import profile
from util import profile
try:
import _winreg

View File

@ -12,8 +12,8 @@ from gui import validators
from gui import preferencesDialog
from gui import configWizard
from gui import machineCom
from gui import profile
from gui import printWindow
from util import profile
def main():
app = wx.App(False)

View File

@ -17,9 +17,9 @@ except:
print "Failed to find PyOpenGL: http://pyopengl.sourceforge.net/"
hasOpenGLlibs = False
from gui import profile
from gui import gcodeInterpreter
from gui import util3d
from util import profile
from util import gcodeInterpreter
from util import util3d
from fabmetheus_utilities.fabmetheus_tools import fabmetheus_interpret
from fabmetheus_utilities.vector3 import Vector3

View File

@ -8,7 +8,7 @@ import threading
import subprocess
import time
from gui import sliceRun
from util import sliceRun
class sliceProgessPanel(wx.Panel):
def __init__(self, mainWindow, parent, filename):

View File

@ -4,7 +4,7 @@ import __init__
import types
import math
from gui import profile
from util import profile
SUCCESS = 0
WARNING = 1

0
Cura/util/__init__.py Normal file
View File

View File

@ -7,7 +7,7 @@ import threading
import re
import os
from gui import util3d
from util import util3d
class gcodePath():
def __init__(self, newType, pathType, layerNr, startPoint):

View File

@ -3,7 +3,7 @@ from __future__ import absolute_import
import platform, os, subprocess, sys
from cura_sf.skeinforge_application.skeinforge_utilities import skeinforge_craft
from gui import profile
from util import profile
def getPyPyExe():
"Return the path to the pypy executable if we can find it. Else return False"