From bdf4dc145a733b20a2d0f7924537eb3d8ed0cadd Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sat, 3 Jul 2021 14:41:30 +0200 Subject: [PATCH] fix bug in logic in animate_order --- extensions/fablabchemnitz/animate_order/animate_order.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/fablabchemnitz/animate_order/animate_order.py b/extensions/fablabchemnitz/animate_order/animate_order.py index 19d00dc3..08b191f0 100644 --- a/extensions/fablabchemnitz/animate_order/animate_order.py +++ b/extensions/fablabchemnitz/animate_order/animate_order.py @@ -59,10 +59,6 @@ class AnimateOrder(inkex.EffectExtension): target_html = os.path.join(extension_dir, "animate_order.html") - if os.path.exists(target_html) is False: - inkex.utils.debug("Error. Target file does not exist!") - exit(1) - docTitle = self.document.getroot().get("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}docname") if docTitle is None: title = "Animate Order - Vivus JS" @@ -96,6 +92,10 @@ class AnimateOrder(inkex.EffectExtension): print( ' ' , file=text_file) print( '' , file=text_file) + if os.path.exists(target_html) is False: + inkex.utils.debug("Error. Target file does not exist!") + exit(1) + #now open firefox args = [self.options.browser, target_html] try: