From 4ce5c7db1b7a9701a7b324e2207d61d7fbfaff7e Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Wed, 28 Nov 2012 12:06:12 +0000
Subject: [PATCH] python: change submodule import to be compatible with python3

---
 wrappers/gmshpy/CMakeLists.txt | 2 +-
 wrappers/gmshpy/gmshGeo.i      | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/wrappers/gmshpy/CMakeLists.txt b/wrappers/gmshpy/CMakeLists.txt
index c432e66b1a..7ec05980f5 100644
--- a/wrappers/gmshpy/CMakeLists.txt
+++ b/wrappers/gmshpy/CMakeLists.txt
@@ -82,7 +82,7 @@ foreach(module ${SWIG_MODULES})
   swig_add_module(${module} python ${module}.i)
   swig_link_libraries(${module} ${PYTHON_LIBRARIES} shared)
   set(GMSH_PYTHON_MODULES_INCLUDE_CODE 
-      "${GMSH_PYTHON_MODULES_INCLUDE_CODE}from ${module} import *\n")
+      "${GMSH_PYTHON_MODULES_INCLUDE_CODE}from gmshpy.${module} import *\n")
   list(APPEND GMSHPY_DEPENDS "_${module}")
   if(APPLE)
     set_target_properties("_${module}" PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace")
diff --git a/wrappers/gmshpy/gmshGeo.i b/wrappers/gmshpy/gmshGeo.i
index 4ae373bc13..8ada18bed7 100644
--- a/wrappers/gmshpy/gmshGeo.i
+++ b/wrappers/gmshpy/gmshGeo.i
@@ -4,7 +4,6 @@
 %include std_string.i
 %include std_list.i
 %include std_vector.i
-%import "gmshCommon.i"
 
 %{
   #include "GmshConfig.h"
-- 
GitLab