From 48723c1fa14b5bdf0ef66f6ea66fd4a48c881ee5 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 14 May 2009 13:10:13 +0000 Subject: [PATCH] Rollback previous integration --- src/SalomeApp/SalomeApp_Application.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); -- 2.39.2