mirror of https://github.com/tuhiproject/tuhi.git
Only export SVG if file not already there
parent
ec8dee07f2
commit
c3bbd8488d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue