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:
committed by
Yorik van Havre
parent
8eb2c49237
commit
bf6d0235cb
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user