From: pascale.noyret Date: Wed, 30 Nov 2016 08:32:00 +0000 (+0100) Subject: bug X-Git-Tag: Salome_8_3_Hydro_2_0rc1~112 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=85a54835fdf72846be5f2df5bff13cbb5234b7a3;p=modules%2Feficas.git bug --- diff --git a/Noyau/N_ENTITE.py b/Noyau/N_ENTITE.py index ee4f6cba..87a0463d 100644 --- a/Noyau/N_ENTITE.py +++ b/Noyau/N_ENTITE.py @@ -31,10 +31,14 @@ import N_OPS import N_VALIDATOR from strfunc import ufmt -try: +from determine import monEnvQT5 +if monEnvQT5: + stringTypes = (str, unicode) +else : + try: from PyQt4 import QtCore stringTypes = (str, unicode, QtCore.QString) -except ImportError: + except ImportError: stringTypes = (str, unicode)