From: adam Date: Tue, 8 Sep 2009 12:48:16 +0000 (+0000) Subject: windows port : the sring in execfile must be protected X-Git-Tag: V5_1_3rc1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=14037e93938dfa1fd2c231f3a9cd7aa2f5941c12;p=modules%2Fgui.git windows port : the sring in execfile must be protected to avoid interpretation of letter ... --- diff --git a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx index 84fd756e4..c4cd89edb 100644 --- a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx +++ b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx @@ -1002,7 +1002,7 @@ bool SalomeApp_NoteBookDlg::updateStudy() app = dynamic_cast( 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 )