From 09b8f8c1268c9b8c872ec39a09795ecbcac9d00c Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Sat, 7 Mar 2015 12:21:04 +0100 Subject: Support for setting the DXF export quality. --- support/dxf_export/effect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/dxf_export') diff --git a/support/dxf_export/effect.py b/support/dxf_export/effect.py index 206ce9d..52915cc 100644 --- a/support/dxf_export/effect.py +++ b/support/dxf_export/effect.py @@ -2,7 +2,7 @@ Based on code from Aaron Spike. See http://www.bobcookdev.com/inkscape/inkscape-dxf.html """ -import pkgutil, re +import pkgutil, os, re from . import inkex, simpletransform, cubicsuperpath, cspsubdiv @@ -32,7 +32,7 @@ class DXFExportEffect(inkex.Effect): self._dxf_instructions = [] self._handle = 255 - self._flatness = 0.1 + self._flatness = float(os.environ['DXF_FLATNESS']) def _get_user_unit(self): """ -- cgit