]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Python modules on Windows OS.
authorrnv <rnv@opencascade.com>
Tue, 7 May 2019 15:10:39 +0000 (18:10 +0300)
committerrnv <rnv@opencascade.com>
Tue, 7 May 2019 15:10:39 +0000 (18:10 +0300)
src/LightApp/LightApp_Application.cxx

index f33201e5b046166fb6557b7906f44e21a8b67ae7..61e47b75774ec62754a8ca9a5943e779220513ee 100644 (file)
@@ -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 )
     {