From 54e5d684f22fdfd46fa06d69ea03cce32ec59dc0 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 14 May 2009 13:13:49 +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 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(); -- 2.39.2