diff --git a/README.md b/README.md index 59221cb..c696079 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,5 @@ Report any issues or feedback here: https://github.com/blender-for-science/blend ## References -Gmsh documentation: http://gmsh.info/doc/texinfo/gmsh.html +Gmsh documentation: http://gmsh.info/doc/texinfo/gmsh.html +gmsh-api: https://pypi.org/project/gmsh-api diff --git a/preferences.py b/preferences.py index 884ddd6..37f5a72 100644 --- a/preferences.py +++ b/preferences.py @@ -11,26 +11,26 @@ def draw(self, context): layout = self.layout - if importlib.util.find_spec('gmsh') is not None: - layout.label(text='Gmsh module loaded.', icon='INFO') + if importlib.util.find_spec('gmsh-api') is not None: + layout.label(text='gmsh-api loaded.', icon='INFO') else: - layout.label(text='Blendmsh requires Gmsh module!', icon='ERROR') + layout.label(text='Blendmsh requires gmsh-api!', icon='ERROR') row = layout.row() row.operator('blendmsh.installer') class BlendmshInstaller(bpy.types.Operator): bl_idname = "blendmsh.installer" - bl_label = "Install Gmsh" - bl_description = ("Install Gmsh module") + bl_label = "Install gmsh-api" + bl_description = ("Install gmsh-api") def execute(self, context): try: from .utils_pip import Pip # Pip.upgrade_pip() - Pip.install('gmsh') + Pip.install('gmsh-api') - import gmsh - self.report({'INFO'}, 'Successfully installed Gmsh module.') + import gmsh_api + self.report({'INFO'}, 'Successfully installed gmsh-api.') except: - self.report({'ERROR'}, 'Could not install Gmsh module, Kindly install it manually.') + self.report({'ERROR'}, 'Could not install gmsh-api, Kindly install it manually.') return {'FINISHED'} \ No newline at end of file diff --git a/processor.py b/processor.py index 40559a3..9a97434 100644 --- a/processor.py +++ b/processor.py @@ -76,7 +76,7 @@ def execute(self, context): scene = context.scene try: - import gmsh + import gmsh_api.gmsh as gmsh if scene.blendmsh.initialized: filename = bpy.context.active_object.name