summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/extensions/__init__.py21
-rw-r--r--lib/extensions/install.py4
-rw-r--r--lib/inx/utils.py2
-rw-r--r--messages.po4
4 files changed, 19 insertions, 12 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
diff --git a/messages.po b/messages.po
index 074159c4..df36b6e9 100644
--- a/messages.po
+++ b/messages.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-08-20 20:42-0400\n"
+"POT-Creation-Date: 2018-08-22 14:12-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -454,7 +454,7 @@ msgstr ""
msgid "Installation Completed"
msgstr ""
-#: lib/extensions/install.py:103
+#: lib/extensions/install.py:107
msgid "Ink/Stitch Add-ons Installer"
msgstr ""