From 04093c9af74a19f80e8bc3aad66b6564ebf388f0 Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Mon, 5 Mar 2018 17:26:13 +0100
Subject: [PATCH] Import PythonQt at startup

---
 src/gui/pythonwidget.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gui/pythonwidget.cc b/src/gui/pythonwidget.cc
index 7e67d33..791ac0f 100644
--- a/src/gui/pythonwidget.cc
+++ b/src/gui/pythonwidget.cc
@@ -46,6 +46,7 @@ namespace gepetto {
         PythonQtObjectPtr mainContext = PythonQt::self()->getMainModule();
         PythonQtObjectPtr sys = PythonQt::self()->importModule ("sys");
         sys.evalScript ("argv = ['gepetto-gui']");
+        mainContext.evalScript ("import PythonQt");
         console_ = new PythonQtScriptingConsole(NULL, mainContext);
 
         PythonQt::self()->registerQObjectClassNames(QStringList()
-- 
GitLab