From: rnv Date: Tue, 7 May 2019 15:10:39 +0000 (+0300) Subject: Python modules on Windows OS. X-Git-Tag: V9_4_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=514654146e35a84d0a6a914d54cad4d0bb4a3489;p=modules%2Fgui.git Python modules on Windows OS. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index f33201e5b..61e47b757 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -3997,8 +3997,11 @@ bool LightApp_Application::checkModule( const QString& title ) if ( isPyModule ) { QString pyModule = QString( "%1GUI.py" ).arg( name ); - paths = QString( ::getenv( "PYTHONPATH" ) ).split( ":", QString::SkipEmptyParts ); - +#if defined(WIN32) + paths = QString( Qtx::getenv( "PYTHONPATH" ) ).split( ";", QString::SkipEmptyParts ); +#else + paths = QString( Qtx::getenv( "PYTHONPATH" ) ).split( ":", QString::SkipEmptyParts ); +#endif isFound = false; for ( it = paths.begin(); it != paths.end() && !isFound; ++it ) {