From ed14946534e7b988f3758c608badc6610708ca94 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 28 Aug 2018 07:48:46 +0800 Subject: [PATCH] Change icon cache name --- utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index e0db6fe..f6a8442 100644 --- a/utils.py +++ b/utils.py @@ -42,15 +42,14 @@ def getIcon(obj,disabled=False,path=None): return obj._iconDisabled def addIconToFCAD(iconFile,path=None): - iconName = ':asm3/icons/' + iconFile if not path: path = iconPath try: path = os.path.join(path,iconFile) - FreeCADGui.addIcon(iconName,path) + FreeCADGui.addIcon(path,path) except AssertionError: pass - return iconName + return path def objName(obj): try: