From: vsr Date: Mon, 18 Feb 2013 12:58:56 +0000 (+0000) Subject: Fix bug: Python GUI library in not found on Windows X-Git-Tag: V6_main_FINAL~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=137f67a05e355f18513d5a8b35156f957a9133db;p=modules%2Fgui.git Fix bug: Python GUI library in not found on Windows --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 2ac1e8128..7434504fb 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -3608,11 +3608,11 @@ bool LightApp_Application::isLibExists( const QString& moduleTitle ) const QString pylibgui = moduleName( moduleTitle ) + QString("GUI.py"); // Check the python library -#ifdef WIN32 - paths = QString(::getenv( "PATH" )).split( ";", QString::SkipEmptyParts ); -#else +// #ifdef WIN32 +// paths = QString(::getenv( "PATH" )).split( ";", QString::SkipEmptyParts ); +// #else paths = QString(::getenv( "PYTHONPATH" )).split( ":", QString::SkipEmptyParts ); -#endif +// #endif bool isPyLib = false, isPyGuiLib = false; QStringList::const_iterator anIt = paths.begin(), aLast = paths.end(); for( ; anIt!=aLast; anIt++ )