Only export SVG if file not already there

pull/281/head
Christoph Stelz 2021-06-23 10:25:50 +02:00
parent ec8dee07f2
commit c3bbd8488d
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@
from gi.repository import GObject
import svgwrite
import os
from svgwrite import mm
import cairo
@ -83,6 +84,8 @@ class JsonSvg(ImageExportBase):
_pen_pressure_width_factor = 0.2
def _convert(self):
if os.path.isfile(self.filename):
return
width, height = self.output_dimensions
size = width * mm, height * mm