Path: Add debug comments and comment out unused code

This commit is contained in:
Russell Johnson
2021-07-05 14:45:36 -05:00
parent aec0bb1329
commit 16489777d2
2 changed files with 7 additions and 1 deletions

View File

@@ -464,6 +464,7 @@ class ToolBitLibrary(object):
if shapefile is None: # user canceled
return
# select the bit file location and filename
filename = PathToolBitGui.GetNewToolFile()
if filename is None:
return
@@ -472,7 +473,7 @@ class ToolBitLibrary(object):
loc, fil = os.path.split(filename)
fname = os.path.splitext(fil)[0]
fullpath = "{}{}{}.fctb".format(loc, os.path.sep, fname)
PathLog.debug(fullpath)
PathLog.debug("fullpath: {}".format(fullpath))
self.temptool = PathToolBit.ToolBitFactory().Create(name=fname)
self.temptool.BitShape = shapefile
@@ -577,6 +578,7 @@ class ToolBitLibrary(object):
self.form.librarySave.setEnabled(True)
def toolEdit(self, selected):
PathLog.track()
item = self.toolModel.item(selected.row(), 0)
if self.temptool is not None: