diff options
author | Michael Schwarz <michi.schwarz@gmail.com> | 2015-03-07 12:21:04 +0100 |
---|---|---|
committer | Michael Schwarz <michi.schwarz@gmail.com> | 2015-03-07 12:24:55 +0100 |
commit | 09b8f8c1268c9b8c872ec39a09795ecbcac9d00c (patch) | |
tree | 97c9930126886532e206d717b6b97a3de2253192 /support/dxf_export | |
parent | b424b1bf755c675416ad716f43185ac8c89a2fb4 (diff) | |
download | pogojig-09b8f8c1268c9b8c872ec39a09795ecbcac9d00c.tar.gz pogojig-09b8f8c1268c9b8c872ec39a09795ecbcac9d00c.tar.bz2 pogojig-09b8f8c1268c9b8c872ec39a09795ecbcac9d00c.zip |
Support for setting the DXF export quality.
Diffstat (limited to 'support/dxf_export')
-rw-r--r-- | support/dxf_export/effect.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): """ |