From 137f67a05e355f18513d5a8b35156f957a9133db Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 18 Feb 2013 12:58:56 +0000 Subject: [PATCH] Fix bug: Python GUI library in not found on Windows --- src/LightApp/LightApp_Application.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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++ ) -- 2.39.2