]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merge branch 'hydro/imps_2017_salome_83' of ssh://git.salome-platform.org/modules...
authorisn <isn@opencascade.com>
Wed, 8 Nov 2017 12:23:37 +0000 (15:23 +0300)
committerisn <isn@opencascade.com>
Wed, 8 Nov 2017 12:23:37 +0000 (15:23 +0300)
bin/gui_setenv.py
src/GraphicsView/GraphicsView_Viewer.cxx

index 5a4a44be37df54a0df354c9a3e41ecb7996f9f22..ec98f1bc8b3bafb40998b77c63b0b8624434be37 100644 (file)
@@ -29,7 +29,12 @@ def set_env( args ):
     dirs = re.split( ":|;", os.getenv( 'VTK_AUTOLOAD_PATH', vtk_overloads_dir ) )
     if vtk_overloads_dir not in dirs: dirs[0:0] = [vtk_overloads_dir]
     os.environ['VTK_AUTOLOAD_PATH'] = os.pathsep.join(dirs)
-    os.environ['QT_PLUGIN_PATH'] = ''
+    #print 'QT_PLUGIN_PATH: ', os.environ['QT_PLUGIN_PATH']
+    qt_plugin_dir = os.path.join( os.getenv( "QTDIR" ), "plugins" )
+    dirs = re.split( ":|;", os.getenv( 'QT_PLUGIN_PATH', qt_plugin_dir ) )
+    if qt_plugin_dir not in dirs: dirs[0:0] = [qt_plugin_dir]
+    dirs2 = list(set(dirs))
+    os.environ['QT_PLUGIN_PATH'] = os.pathsep.join(dirs2)
+    #print 'QT_PLUGIN_PATH: ', os.environ['QT_PLUGIN_PATH']
+    #print 'QT_QPA_PLATFORM_PLUGIN_PATH: ', os.environ['QT_QPA_PLATFORM_PLUGIN_PATH']
     return
-
-
index 4202a633211c8a5d0b7a74d3e51ce38389b88a3c..a8e1511b2c360aec3bb3d834f2eda335abd788f5 100644 (file)
@@ -37,6 +37,8 @@
 #include <QKeyEvent>
 #include <QMenu>
 
+#include <math.h>
+
 // testing ImageViewer
 /*
 #include "GraphicsView_PrsImage.h"