]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix bug: Python GUI library in not found on Windows
authorvsr <vsr@opencascade.com>
Mon, 18 Feb 2013 12:58:56 +0000 (12:58 +0000)
committervsr <vsr@opencascade.com>
Mon, 18 Feb 2013 12:58:56 +0000 (12:58 +0000)
src/LightApp/LightApp_Application.cxx

index 2ac1e812859863ddf2c4e4017e3dd0d29fd14425..7434504fb5b29fb7ccb2f95a42c53afd89d9c150 100644 (file)
@@ -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++ )