Make Toolbit find Bit files relative to the current library directory

This commit is contained in:
sliptonic
2020-11-07 14:41:43 -06:00
parent 1672a33647
commit cbc8524ff9
3 changed files with 20 additions and 6 deletions

View File

@@ -27,8 +27,8 @@ import glob
import os
import PathScripts.PathLog as PathLog
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
#PathLog.trackModule()
# PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
# PathLog.trackModule()
DefaultFilePath = "DefaultFilePath"
DefaultJobTemplate = "DefaultJobTemplate"
@@ -152,7 +152,9 @@ def searchPathsTool(sub='Bit'):
paths = []
if 'Bit' == sub:
paths.append("{}/Bit".format(os.path.dirname(lastPathToolLibrary())))
paths.append(lastPathToolBit())
if 'Library' == sub:
paths.append(lastPathToolLibrary())
if 'Shape' == sub: