From 514654146e35a84d0a6a914d54cad4d0bb4a3489 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 7 May 2019 18:10:39 +0300 Subject: [PATCH] Python modules on Windows OS. --- src/LightApp/LightApp_Application.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ) { -- 2.39.2