When using fcbt.py to generate a python module, use FreeCAD.getUserAppDataDir() rather than FreeCAD.getHomeDir() to specify the module icon

This commit is contained in:
Mikael Lindqvist
2019-05-05 17:24:25 +08:00
committed by Yorik van Havre
parent 8eb2c49237
commit bf6d0235cb

View File

@@ -5,7 +5,7 @@
class _TEMPLATEPY_Workbench ( Workbench ):
"_TEMPLATEPY_ workbench object"
Icon = FreeCAD.getHomePath() + "Mod/_TEMPLATEPY_/Resources/icons/_TEMPLATEPY_Workbench.svg"
Icon = FreeCAD.getUserAppDataDir() + "Mod/_TEMPLATEPY_/Resources/icons/_TEMPLATEPY_Workbench.svg"
MenuText = "_TEMPLATEPY_"
ToolTip = "_TEMPLATEPY_ workbench"