diff --git a/src/gui/pythonwidget.cc b/src/gui/pythonwidget.cc
index 0bcd3616fae67665a3da6900f6e1e0f9a4143135..24066384632203e0149fe508c1f2ce93cfd56e24 100644
--- a/src/gui/pythonwidget.cc
+++ b/src/gui/pythonwidget.cc
@@ -3,7 +3,7 @@
 #include <QFileDialog>
 #include <PythonQt/PythonQt.h>
 #include <PythonQt/PythonQt_QtAll.h>
-#include <PythonQt/PythonQtScriptingConsole.h>
+#include <PythonQt/gui/PythonQtScriptingConsole.h>
 #include <PythonQt/PythonQtClassInfo.h>
 #include <PythonQt/PythonQt_QtBindings.h>