]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correction of Python 3 compatibility
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 16 Nov 2018 20:58:34 +0000 (21:58 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 16 Nov 2018 20:58:34 +0000 (21:58 +0100)
resources/ADAOSchemaCatalog.xml

index af25ccf9db3f7e460f271e77385e69db198c342a..0400cc65e291960befe6c8f9ddd4d2d2fa286d36 100644 (file)
@@ -581,7 +581,7 @@ for param in data["specificParameters"]:
   </inline>
 
   <inline name="ObservationNodeFile">
-    <script><code><![CDATA[execfile(script)]]></code></script>
+    <script><code><![CDATA[with open(script, 'rb') as file: exec(file.read())]]></code></script>
     <inport name="var"    type="pyobj"/>
     <inport name="info"   type="pyobj"/>
     <inport name="script" type="string"/>