small cosmetic improvements
[swftools.git] / wx / viewers / technoargia.py
index 7d6afa2..52cc488 100644 (file)
@@ -24,7 +24,7 @@
 
 from gui.fields import Choose, ChooseAndInt, Hidden
 
-order = 4
+order = 1
 type = "custom"
 name = u"technoargia Viewer"
 desc = (u"Simple viewer with home link from Laurent Lalanne"
@@ -71,7 +71,7 @@ html_template = """<html>
 """
 
 from gui.plugin import Plugin
-import os
+import os, sys
 
 class Technoargia(Plugin):
     def __init__(self, swf, filename):
@@ -86,7 +86,10 @@ class Technoargia(Plugin):
             setattr(self, "_%s" % opt.name, opt.value)
 
     def after_save(self, page):
-        viewerfilename = self._swap_extension(__file__, "swf")
+        basedir = GPDF2SWF_BASEDIR
+        viewerfilename = os.path.join(basedir,
+                                      "viewers",
+                                      "technoargia.swf")
 
         self.swfcombine(
                u"%s" % viewerfilename,