]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
Additional python3 porting to make python scripts work
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 30 Jul 2019 07:18:33 +0000 (09:18 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 30 Jul 2019 07:18:33 +0000 (09:18 +0200)
src/HEXABLOCK_SWIG/hexablock.py

index 5f7c10b1425cee991a4bc971e98c77ec8c3f80bd..0a586111a05b37fc4cd2240450456be789c2c683 100644 (file)
@@ -140,7 +140,7 @@ def mesh (doc, name=None, dim=3, container="FactoryServer"):
 
     stream = doc.getFirstExplicitShape ()
     if stream != None :
-       shape = geompy.RestoreShape (stream)
+       shape = geompy.RestoreShape (stream.encode())
     else :
        shape = geompy.MakeBox(0, 0, 0,  1, 1, 1)