From 2a2eeeeae5b3fdc24e0a182781c5d5e5004210b7 Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Tue, 22 Jun 2021 15:12:01 +0200 Subject: [PATCH] Working again --- src/PythonAddons/macros/pipeNetwork/feature.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PythonAddons/macros/pipeNetwork/feature.py b/src/PythonAddons/macros/pipeNetwork/feature.py index a1fd2ee4b..c2e872c77 100755 --- a/src/PythonAddons/macros/pipeNetwork/feature.py +++ b/src/PythonAddons/macros/pipeNetwork/feature.py @@ -25,9 +25,7 @@ Author: Nathalie Gore __revision__ = "V02.02" from salome.shaper import model - import ModelAPI - from GeomAPI import * class pipeNetwork(model.Feature): @@ -123,7 +121,7 @@ class pipeNetwork(model.Feature): print(line) diagno = 0 if method == self.twopartwo : - if isinstance(self.connectivities,dict) : + if self.connectivities == {} : print("nouvelle ligne - Cas 1") self.newConnectivity(splitLine[0], splitLine) else : -- 2.39.2