diff --git a/src/Mod/Sketcher/Gui/AppSketcherGui.cpp b/src/Mod/Sketcher/Gui/AppSketcherGui.cpp
index d76d0c9e19..9f19709a9d 100644
--- a/src/Mod/Sketcher/Gui/AppSketcherGui.cpp
+++ b/src/Mod/Sketcher/Gui/AppSketcherGui.cpp
@@ -32,6 +32,7 @@
#include
#include
#include
+#include
#include
#include
#include "Workbench.h"
@@ -100,6 +101,15 @@ PyMOD_INIT_FUNC(SketcherGui)
PyObject* mod = SketcherGui::initModule();
Base::Console().Log("Loading GUI of Sketcher module... done\n");
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/constraints"));
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/elements"));
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/general"));
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/geometry"));
+ //Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/obsolete"));
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/pointers"));
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/splines"));
+ Gui::BitmapFactory().addPath(QString::fromLatin1(":/icons/tools"));
+
// instantiating the commands
CreateSketcherCommands();
CreateSketcherCommandsCreateGeo();
diff --git a/src/Mod/Sketcher/InitGui.py b/src/Mod/Sketcher/InitGui.py
index 739434a99a..c3247cb21a 100644
--- a/src/Mod/Sketcher/InitGui.py
+++ b/src/Mod/Sketcher/InitGui.py
@@ -42,14 +42,7 @@ class SketcherWorkbench ( Workbench ):
# load the module
import SketcherGui
import Sketcher
- Gui.addIconPath(":/icons/constraints")
- Gui.addIconPath(":/icons/elements")
- Gui.addIconPath(":/icons/general")
- Gui.addIconPath(":/icons/geometry")
- # Gui.addIconPath(":/icons/obsolete")
- Gui.addIconPath(":/icons/pointers")
- Gui.addIconPath(":/icons/splines")
- Gui.addIconPath(":/icons/tools")
+
try:
import Profiles
except ImportError: