diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-22 14:12:39 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-22 14:12:39 -0400 |
| commit | 674283c13557a5c0e30d7e8a2048c3297b044888 (patch) | |
| tree | df6becf655bf13344774d123b1dc0732184f1d4a /lib | |
| parent | d02ddff4753f89f913613a10cfa766d86f80d9a9 (diff) | |
fix missing install extension INX file
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/extensions/__init__.py | 21 | ||||
| -rw-r--r-- | lib/extensions/install.py | 4 | ||||
| -rw-r--r-- | lib/inx/utils.py | 2 |
3 files changed, 17 insertions, 10 deletions
diff --git a/lib/extensions/__init__.py b/lib/extensions/__init__.py index 1606795c..cf0313b2 100644 --- a/lib/extensions/__init__.py +++ b/lib/extensions/__init__.py @@ -11,12 +11,15 @@ from object_commands import ObjectCommands from layer_commands import LayerCommands from convert_to_satin import ConvertToSatin -from base import InkstitchExtension -import inspect - -extensions = [] -for item in locals().values(): - if inspect.isclass(item) and \ - issubclass(item, InkstitchExtension) and \ - item is not InkstitchExtension: - extensions.append(item) +__all__ = extensions = [Embroider, + Install, + Params, + Print, + Simulate, + Input, + Output, + Zip, + Flip, + ObjectCommands, + LayerCommands, + ConvertToSatin] diff --git a/lib/extensions/install.py b/lib/extensions/install.py index 42a92113..3644afad 100644 --- a/lib/extensions/install.py +++ b/lib/extensions/install.py @@ -98,6 +98,10 @@ class InstallerFrame(wx.Frame): shutil.copy(palette_file, dest) class Install(inkex.Effect): + @classmethod + def name(cls): + return "install" + def effect(self): app = wx.App() installer_frame = InstallerFrame(None, title=_("Ink/Stitch Add-ons Installer"), size=(550, 250)) diff --git a/lib/inx/utils.py b/lib/inx/utils.py index cd0fdc6e..7c471276 100644 --- a/lib/inx/utils.py +++ b/lib/inx/utils.py @@ -28,7 +28,7 @@ def build_environment(): def write_inx_file(name, contents): inx_file_name = "inkstitch_%s_%s.inx" % (name, current_locale) with open(os.path.join(inx_path, inx_file_name), 'w') as inx_file: - print >> inx_file.encode("utf-8"), contents + print >> inx_file, contents.encode("utf-8") def iterate_inx_locales(): global current_translation, current_locale |
