fix bug in logic in animate_order

This commit is contained in:
Mario Voigt 2021-07-03 14:41:30 +02:00
parent 5e273ec2c4
commit bdf4dc145a
1 changed files with 4 additions and 4 deletions

View File

@ -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( ' </body>' , file=text_file)
print( '</html>' , 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: