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 49ed29cd0b
commit 2d2b5f3e19

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"