From 85a54835fdf72846be5f2df5bff13cbb5234b7a3 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 30 Nov 2016 09:32:00 +0100 Subject: [PATCH] bug --- Noyau/N_ENTITE.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.2