Commit 244b3aef authored by wmayer's avatar wmayer
Browse files

+ use correct function to get resource directory

parent d54457e9
......@@ -230,7 +230,7 @@ class _MechanicalMaterialTaskPanel:
def fillMaterialCombo(self):
import glob,os
matmap = self.obj.Material
dirname = FreeCAD.ConfigGet("AppHomePath")+"data/Mod/Material/StandardMaterial"
dirname = FreeCAD.getResourceDir()+"/Mod/Material/StandardMaterial"
self.pathList = glob.glob(dirname + '/*.FCMat')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment