From 093b2c2df43c5242fb43b2e9bde565fac01f5a5c Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 29 Dec 2020 19:50:28 +0100 Subject: Update README --- plugin/mesh_plugin.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 plugin/mesh_plugin.py (limited to 'plugin/mesh_plugin.py') diff --git a/plugin/mesh_plugin.py b/plugin/mesh_plugin.py deleted file mode 100644 index 1951875..0000000 --- a/plugin/mesh_plugin.py +++ /dev/null @@ -1,38 +0,0 @@ -from os import path -import subprocess -import sys - -import wx - -import pcbnew - -def check_requirements(*packages): - missing = [] - for pkg in packages: - try: - __import__(pkg) - except ImportError: - missing.append(pkg) - - if missing: - wx.MessageDialog(None, "Error: Missing python dependencies:\n\n{}".format('\n'.join(missing)), - "Missing Dependencies").ShowModal() - return False - - else: - return True - -class MeshPlugin(pcbnew.ActionPlugin): - def defaults(self): - self.name = 'Mesh generator' - self.category = 'Modify PCB' - self.description = 'Creates security mesh traces on a PCB' - self.icon_file_name = path.join(path.dirname(__file__), 'mesh_plugin_icon.png') - self.show_toolbar_button = True - - def Run(self): - if not check_requirements('shapely'): - return - - from .mesh_dialog import show_dialog - show_dialog(pcbnew.GetBoard()) -- cgit