]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
windows port : the sring in execfile must be protected
authoradam <adam>
Tue, 8 Sep 2009 12:48:16 +0000 (12:48 +0000)
committeradam <adam>
Tue, 8 Sep 2009 12:48:16 +0000 (12:48 +0000)
to avoid interpretation of letter ...

src/SalomeApp/SalomeApp_NoteBookDlg.cxx

index 84fd756e4eff0821beeb2ddb109a409afbb58b18..c4cd89edbd9f01b4beacf92e3d0622fa090ed6b3 100644 (file)
@@ -1002,7 +1002,7 @@ bool SalomeApp_NoteBookDlg::updateStudy()
   app = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() );
 
   // load study from the temporary directory
-  QString command = QString( "execfile(\"%1\")" ).arg( aTmpDir + QDir::separator() + aFileName + ".py" );
+  QString command = QString( "execfile(r\"%1\")" ).arg( aTmpDir + QDir::separator() + aFileName + ".py" );
 
   PyConsole_Console* pyConsole = app->pythonConsole();
   if ( pyConsole )