index 5bac2550b5bad2fdd34ab9cd23dda8f8d49e7185..f8a8a2c325ce5fed8de4126aad8c155e31242bc3 100644 (file)
import inkex, cubicsuperpath, bezmisc
import pathmodifier,simpletransform
-
import copy, math, re, random
+import gettext
+_ = gettext.gettext
def flipxy(path):
for pathcomp in path:
def effect(self):
if len(self.options.ids)<2:
- inkex.debug("This extension requires that you select two paths.")
+ inkex.errormsg(_("This extension requires two selected paths."))
return
self.prepareSelectionList()
self.options.wave = (self.options.kind=="Ribbon")
node.set('d', cubicsuperpath.formatPath(newp))
-e = PathAlongPath()
-e.affect()
+if __name__ == '__main__':
+ e = PathAlongPath()
+ e.affect()
+# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99