]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Rollback previous integration
authorvsr <vsr@opencascade.com>
Thu, 14 May 2009 13:13:49 +0000 (13:13 +0000)
committervsr <vsr@opencascade.com>
Thu, 14 May 2009 13:13:49 +0000 (13:13 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index ad7b6314f4f91e1b1454055f83e23993cfb61328..54a4ce85c96ff2d11d077f5e2b31a93bbed43887 100644 (file)
@@ -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();