From: vsr Date: Thu, 14 May 2009 13:13:49 +0000 (+0000) Subject: Rollback previous integration X-Git-Tag: V4_1_0_maintainance_FINAL~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54e5d684f22fdfd46fa06d69ea03cce32ec59dc0;p=modules%2Fgui.git Rollback previous integration --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index ad7b6314f..54a4ce85c 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -785,10 +785,7 @@ void SalomeApp_Application::onLoadScript( ) if ( !aFile.isEmpty() ) { - QFileInfo aFileInfo( aFile ); - QString anAbsPath = aFileInfo.dirPath( true ); - QString aFileName = aFileInfo.baseName(); - QString command = QString("import sys; sys.path.insert(0,\"%1\"); import %2").arg(anAbsPath, aFileName); + QString command = QString("execfile(\"%1\")").arg(aFile); PythonConsole* pyConsole = pythonConsole();