]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
GUI SALOME 9.3.0 - Windows -backporting patch
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 27 Jul 2021 15:21:50 +0000 (17:21 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 27 Jul 2021 15:21:50 +0000 (17:21 +0200)
products/GUI.pyconf
products/patches/GUI-V9_3_0-LightApplication_windows.patch [new file with mode: 0644]

index 98e0a66d634eb4cf21efd2853e1e5e778d5d337e..64e370c54e0760151992d48d7d59a3bbb6091bfd 100644 (file)
@@ -128,6 +128,34 @@ version_9_4_0_win:
     build_depend : ["cmake", "swig", "doxygen", "cppunit"]
 }
 
+version_V9_3_0_win :
+{
+    depend : ["KERNEL",
+              "Python",
+              "qt",
+              "sip",
+              "PyQt",
+              "boost",
+              "CAS",
+              "qwt",
+              "hdf5",
+              "freetype",
+              "freeimage",
+              "gl2ps",
+              "ParaView",
+              "omniORB",
+              "docutils",
+              "libxml2",
+              "sphinxintl",
+              "sphinxcontrib_websupport",
+              "sphinxcontrib_applehelp",
+              "sphinxcontrib_serializinghtml",
+              "sphinxcontrib_napoleon"
+             ]
+    build_depend : ["cmake", "swig", "doxygen", "cppunit"]
+    patches : ['GUI-V9_3_0-LightApplication_windows.patch']
+}
+
 # OP 19/04/2018 Add section for SALOME 7.8.0 to 8.4.0 due to new dependencies in SALOME 8.5.0
 version_7_8_0_to_8_4_0 :
 {
diff --git a/products/patches/GUI-V9_3_0-LightApplication_windows.patch b/products/patches/GUI-V9_3_0-LightApplication_windows.patch
new file mode 100644 (file)
index 0000000..71fb5e2
--- /dev/null
@@ -0,0 +1,18 @@
+diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx
+index f33201e5b..7586e48aa 100644
+--- a/src/LightApp/LightApp_Application.cxx
++++ b/src/LightApp/LightApp_Application.cxx
+@@ -3997,7 +3997,12 @@ 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 )