[PD] fixes problem with the path for user-defined hole-cut-types

https://forum.freecadweb.org/viewtopic.php?f=19&t=51403&start=20#p482574
This commit is contained in:
M G Berberich
2021-02-28 14:44:37 +01:00
committed by wwmayer
parent 3704ad68d8
commit d1439107df

View File

@@ -2190,10 +2190,9 @@ void from_json(const nlohmann::json &j, Hole::CutDimensionSet &t)
void Hole::readCutDefinitions()
{
const char subpath[] = "Mod/PartDesign/Resources/Hole";
std::vector<std::string> dirs {
::App::Application::getResourceDir() + subpath,
::App::Application::getUserAppDataDir() + subpath,
::App::Application::getResourceDir() + "Mod/PartDesign/Resources/Hole",
::App::Application::getUserAppDataDir() + "PartDesign/Hole"
};
std::clog << "Looking for thread definitions in: ";