From: vsr Date: Thu, 14 May 2009 13:10:13 +0000 (+0000) Subject: Rollback previous integration X-Git-Tag: V5_1_2rc1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48723c1fa14b5bdf0ef66f6ea66fd4a48c881ee5;p=modules%2Fgui.git Rollback previous integration --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 9a743652f..fe88f05d4 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -765,10 +765,7 @@ void SalomeApp_Application::onLoadScript( ) if ( !aFile.isEmpty() ) { - QFileInfo aFileInfo( aFile ); - QString anAbsPath = aFileInfo.absolutePath(); - QString aFileName = aFileInfo.baseName(); - QString command = QString("import sys; sys.path.insert(0,r\"%1\"); import %2").arg(anAbsPath, aFileName); + QString command = QString("execfile(r\"%1\")").arg(aFile); PyConsole_Console* pyConsole = pythonConsole();