Py3: PartDesign: relative imports

This commit is contained in:
looooo
2018-08-19 07:52:17 +02:00
committed by wmayer
parent 03a28be4ca
commit fa99f792e3
3 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ class PartDesignWorkbench ( Workbench ):
def Initialize(self):
# load the module
try:
from WizardShaft import WizardShaft
from PartDesign.WizardShaft import WizardShaft
except ImportError:
print("Wizard shaft module cannot be loaded")
try:
@@ -50,7 +50,7 @@ class PartDesignWorkbench ( Workbench ):
import PartDesignGui
import PartDesign
try:
import InvoluteGearFeature
from PartDesign import InvoluteGearFeature
except ImportError:
print("Involute gear module cannot be loaded")
#try:

View File

@@ -22,9 +22,9 @@
# ******************************************************************************/
import FreeCAD, FreeCADGui
from SegmentFunction import SegmentFunction, IntervalFunction, StressFunction, TranslationFunction
from ShaftFeature import ShaftFeature
from ShaftDiagram import Diagram
from .SegmentFunction import SegmentFunction, IntervalFunction, StressFunction, TranslationFunction
from .ShaftFeature import ShaftFeature
from .ShaftDiagram import Diagram
import math
class ShaftSegment:

View File

@@ -22,8 +22,8 @@
import FreeCAD, FreeCADGui
from PySide import QtCore, QtGui
from WizardShaftTable import WizardShaftTable
from Shaft import Shaft
from .WizardShaftTable import WizardShaftTable
from .Shaft import Shaft
class TaskWizardShaft:
"Shaft Wizard"