diff --git a/pyplugins/gepetto/gui/pythonwidget.py b/pyplugins/gepetto/gui/pythonwidget.py
index 7c4df4b4cf0476ff080301a23312ed54528ffcc3..979cd2f55e64cce56cd28e2c453fb891872099d8 100644
--- a/pyplugins/gepetto/gui/pythonwidget.py
+++ b/pyplugins/gepetto/gui/pythonwidget.py
@@ -1,7 +1,5 @@
 from PythonQt import QtGui, Qt
 from gepetto.corbaserver import Client
-import sys
-sys.argv = ["none"]
 
 ### This class represents one special tab of the new QDockWidget
 class _NodeCreator (QtGui.QWidget):
diff --git a/src/gui/pythonwidget.cc b/src/gui/pythonwidget.cc
index d22067d9642e2bee28be887c0d6a89f635588086..257fcdaa43dab7a5a1ec2adc88dbc9eeaa9a7341 100644
--- a/src/gui/pythonwidget.cc
+++ b/src/gui/pythonwidget.cc
@@ -34,8 +34,8 @@ namespace gepetto {
             PythonQt::init(PythonQt::RedirectStdOut);
             PythonQt_QtAll::init();
             mainContext_ = PythonQt::self()->getMainModule();
-	    PythonQtObjectPtr sys = PythonQt::self()->importModule ("sys");
-	    sys.addVariable ("argv", QVariant(QStringList () << "toto.py"));
+            PythonQtObjectPtr sys = PythonQt::self()->importModule ("sys");
+            sys.evalScript ("argv = ['gepetto-gui']");
             console_ = new PythonQtScriptingConsole(NULL, mainContext_);
             mainContext_.addObject("mainWindow", MainWindow::instance());