summaryrefslogtreecommitdiff
path: root/support/dxf_export
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-03-07 12:21:04 +0100
committerMichael Schwarz <michi.schwarz@gmail.com>2015-03-07 12:24:55 +0100
commit09b8f8c1268c9b8c872ec39a09795ecbcac9d00c (patch)
tree97c9930126886532e206d717b6b97a3de2253192 /support/dxf_export
parentb424b1bf755c675416ad716f43185ac8c89a2fb4 (diff)
downloadpogojig-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.py4
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):
"""