Py3: PartDesign: relative imports
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user