Salome HOME
merge from master
[tools/sat_salome.git] / products / patches / GUI-V9_3_0-LightApplication_windows.patch
1 diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx
2 index f33201e5b..7586e48aa 100644
3 --- a/src/LightApp/LightApp_Application.cxx
4 +++ b/src/LightApp/LightApp_Application.cxx
5 @@ -3997,7 +3997,12 @@ bool LightApp_Application::checkModule( const QString& title )
6    if ( isPyModule )
7    {
8      QString pyModule = QString( "%1GUI.py" ).arg( name );
9 -    paths = QString( ::getenv( "PYTHONPATH" ) ).split( ":", QString::SkipEmptyParts );
10 +
11 +#if defined(WIN32)
12 +    paths = QString( Qtx::getenv( "PYTHONPATH" ) ).split( ";", QString::SkipEmptyParts );
13 +#else
14 +    paths = QString( Qtx::getenv( "PYTHONPATH" ) ).split( ":", QString::SkipEmptyParts );
15 +#endif
16  
17      isFound = false;
18      for ( it = paths.begin(); it != paths.end() && !isFound; ++it )