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

index 9a743652ffda869f3619e0386f6feb3e2dc0ae51..fe88f05d421a5705b94fd3de842b2d6cb8213675 100644 (file)
@@ -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();