remove unnecessary imports. normalize debug log levels

This commit is contained in:
sliptonic
2019-06-20 10:01:11 -05:00
parent c8e945a3ab
commit 617c619d2f
57 changed files with 173 additions and 182 deletions

View File

@@ -52,15 +52,15 @@ __created__ = "2017"
__scriptVersion__ = "2g testing"
__lastModified__ = "2019-06-12 23:29 CST"
if False:
LOGLEVEL = False
if LOGLEVEL:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
else:
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
# Qt translation handling
def translate(context, text, disambig=None):
return QtCore.QCoreApplication.translate(context, text, disambig)
@@ -469,20 +469,20 @@ class ObjectPocket(PathPocketBase.ObjectPocket):
# Eif
# Efor
# Efor
if False:
if False:
(Tags, Grps) = self.sortTuplesByIndex(allTuples, 2) # return (TagList, GroupList)
subList = []
for o in range(0, len(Tags)):
subList = []
for (base, sub, tag, angle, axis, stock) in Grps[o]:
subList.append(sub)
pair = base, subList, angle, axis, stock
baseSubsTuples.append(pair)
if False:
for (bs, sb, tg, agl, ax, stk) in allTuples:
pair = bs, [sb], agl, ax, stk
baseSubsTuples.append(pair)
# if False:
# if False:
# (Tags, Grps) = self.sortTuplesByIndex(allTuples, 2) # return (TagList, GroupList)
# subList = []
# for o in range(0, len(Tags)):
# subList = []
# for (base, sub, tag, angle, axis, stock) in Grps[o]:
# subList.append(sub)
# pair = base, subList, angle, axis, stock
# baseSubsTuples.append(pair)
# if False:
# for (bs, sb, tg, agl, ax, stk) in allTuples:
# pair = bs, [sb], agl, ax, stk
# baseSubsTuples.append(pair)
# ----------------------------------------------------------------------
for o in baseSubsTuples: