Skip to content

Commit

Permalink
Path: fix import problem in toolcontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptonic authored and wwmayer committed Jun 28, 2017
1 parent 3254aca commit 75dc43f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Path/PathScripts/PathToolController.py
Expand Up @@ -29,7 +29,7 @@
import Path
import PathScripts
import PathScripts.PathLog as PathLog
import PathUtils
#from . import PathUtils
import xml.etree.ElementTree as xml

from FreeCAD import Units
Expand Down Expand Up @@ -136,7 +136,7 @@ def onChanged(self, obj, prop):


if 'Restore' not in obj.State:
job = PathUtils.findParentJob(obj)
job = PathScripts.PathUtils.findParentJob(obj)
if job is not None:
for g in job.Group:
if not(isinstance(g.Proxy, PathScripts.PathToolController.ToolController)):
Expand Down Expand Up @@ -248,7 +248,7 @@ def Create(jobname=None, assignViewProvider=True, tool=None, toolNumber=1):
tool.Material = "HighSpeedSteel"
obj.Tool = tool
obj.ToolNumber = toolNumber
PathUtils.addToJob(obj, jobname)
PathScripts.PathUtils.addToJob(obj, jobname)

@staticmethod
def FromTemplate(job, template, assignViewProvider=True):
Expand All @@ -261,7 +261,7 @@ def FromTemplate(job, template, assignViewProvider=True):

tc.assignTemplate(obj, template)

PathUtils.addToJob(obj, job.Name)
PathScripts.PathUtils.addToJob(obj, job.Name)


class TaskPanel:
Expand Down

0 comments on commit 75dc43f

Please sign in to comment.