From 9871809e2de0563e8c6b71ac0ea4075905d92f11 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 4 Mar 2021 22:21:30 +0100 Subject: [PATCH] Updated dxf importer to recent ezdxf version 0.15.2 --- extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py index a0cbbc65..06623060 100644 --- a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py +++ b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py @@ -40,8 +40,9 @@ import urllib.request as urllib #ezdxf related imports import matplotlib.pyplot as plt import ezdxf -from ezdxf.addons.drawing import RenderContext, Frontend -from ezdxf.addons.drawing.matplotlib_backend import MatplotlibBackend +from ezdxf.addons.drawing import RenderContext, Frontend +#from ezdxf.addons.drawing.matplotlib_backend import MatplotlibBackend for older ezdxf library 0.14.1 +from ezdxf.addons.drawing.matplotlib import MatplotlibBackend #for recent ezdxf library 0.15.2 from ezdxf.addons import Importer class DXFDWGImport(inkex.Effect):