thus we need to protect the string with a "r"
in order that python don't interpret it ...
QString extension = fi.suffix().toLower();
if ( fi.exists() ) {
// execute python script
- QString command = QString( "execfile(\"%1\")" ).arg( fi.absoluteFilePath() );
+ QString command = QString( "execfile(r\"%1\")" ).arg( fi.absoluteFilePath() );
pyConsole->exec( command );
}
else {
if ( !aFile.isEmpty() )
{
- QString command = QString("execfile(\"%1\")").arg(aFile);
+ QString command = QString("execfile(r\"%1\")").arg(aFile);
PyConsole_Console* pyConsole = pythonConsole();