summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--support/dxf_export/__init__.py0
-rw-r--r--support/dxf_export/__main__.py (renamed from dxf_export/__main__.py)0
-rwxr-xr-xsupport/dxf_export/better_dxf_outlines.py (renamed from dxf_export/better_dxf_outlines.py)0
-rwxr-xr-xsupport/dxf_export/bezmisc.py (renamed from dxf_export/bezmisc.py)0
-rwxr-xr-xsupport/dxf_export/cspsubdiv.py (renamed from dxf_export/cspsubdiv.py)0
-rwxr-xr-xsupport/dxf_export/cubicsuperpath.py (renamed from dxf_export/cubicsuperpath.py)0
-rwxr-xr-xsupport/dxf_export/dxf_templates.py (renamed from dxf_export/dxf_templates.py)0
-rwxr-xr-xsupport/dxf_export/ffgeom.py (renamed from dxf_export/ffgeom.py)0
-rwxr-xr-xsupport/dxf_export/inkex.py (renamed from dxf_export/inkex.py)0
-rwxr-xr-xsupport/dxf_export/simplepath.py (renamed from dxf_export/simplepath.py)0
-rwxr-xr-xsupport/dxf_export/simplestyle.py (renamed from dxf_export/simplestyle.py)0
-rwxr-xr-xsupport/dxf_export/simpletransform.py (renamed from dxf_export/simpletransform.py)0
13 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1b50f45..5a77c48 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
INKSCAPE ?= inkscape
OPENSCAD ?= openscad
+PYTHON ?= python2
# Used by dxf_export/main.sh
export INKSCAPE
@@ -36,7 +37,7 @@ $(foreach i,$(COMPILED_SCAD_FILES),$(eval $(i): $(filter $(dir $(i))%,$(LIBRARY_
# Rule to convert an SVG file to a DXF file.
%.dxf: %.svg
- python2 dxf_export $< $@
+ PYTHONPATH="support:$$PYTHONPATH" $(PYTHON) -m dxf_export $< $@
# Rule to compile an OpenSCAD file to an STL file.
%.stl: %.scad
diff --git a/support/dxf_export/__init__.py b/support/dxf_export/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/support/dxf_export/__init__.py
diff --git a/dxf_export/__main__.py b/support/dxf_export/__main__.py
index ea6c7ad..ea6c7ad 100644
--- a/dxf_export/__main__.py
+++ b/support/dxf_export/__main__.py
diff --git a/dxf_export/better_dxf_outlines.py b/support/dxf_export/better_dxf_outlines.py
index 19ec6c8..19ec6c8 100755
--- a/dxf_export/better_dxf_outlines.py
+++ b/support/dxf_export/better_dxf_outlines.py
diff --git a/dxf_export/bezmisc.py b/support/dxf_export/bezmisc.py
index e663fa6..e663fa6 100755
--- a/dxf_export/bezmisc.py
+++ b/support/dxf_export/bezmisc.py
diff --git a/dxf_export/cspsubdiv.py b/support/dxf_export/cspsubdiv.py
index c34236a..c34236a 100755
--- a/dxf_export/cspsubdiv.py
+++ b/support/dxf_export/cspsubdiv.py
diff --git a/dxf_export/cubicsuperpath.py b/support/dxf_export/cubicsuperpath.py
index af61acb..af61acb 100755
--- a/dxf_export/cubicsuperpath.py
+++ b/support/dxf_export/cubicsuperpath.py
diff --git a/dxf_export/dxf_templates.py b/support/dxf_export/dxf_templates.py
index fb26632..fb26632 100755
--- a/dxf_export/dxf_templates.py
+++ b/support/dxf_export/dxf_templates.py
diff --git a/dxf_export/ffgeom.py b/support/dxf_export/ffgeom.py
index 1983586..1983586 100755
--- a/dxf_export/ffgeom.py
+++ b/support/dxf_export/ffgeom.py
diff --git a/dxf_export/inkex.py b/support/dxf_export/inkex.py
index e487822..e487822 100755
--- a/dxf_export/inkex.py
+++ b/support/dxf_export/inkex.py
diff --git a/dxf_export/simplepath.py b/support/dxf_export/simplepath.py
index f62b1b4..f62b1b4 100755
--- a/dxf_export/simplepath.py
+++ b/support/dxf_export/simplepath.py
diff --git a/dxf_export/simplestyle.py b/support/dxf_export/simplestyle.py
index 3ec971e..3ec971e 100755
--- a/dxf_export/simplestyle.py
+++ b/support/dxf_export/simplestyle.py
diff --git a/dxf_export/simpletransform.py b/support/dxf_export/simpletransform.py
index 47cc61e..47cc61e 100755
--- a/dxf_export/simpletransform.py
+++ b/support/dxf_export/simpletransform.py