Draft: move getDXF to draftfunctions submodule

Update the appropriate interface in `Draft.py`.
This commit is contained in:
vocx-fc
2020-09-09 00:07:45 -05:00
committed by Yorik van Havre
parent cc8bc60e02
commit b202b0d469
5 changed files with 135 additions and 73 deletions

View File

@@ -40,6 +40,7 @@ this object should no longer be available.
from PySide.QtCore import QT_TRANSLATE_NOOP
import draftfunctions.svg as get_svg
import draftfunctions.dxf as get_dxf
import draftutils.utils as utils
import draftutils.groups as groups
@@ -182,7 +183,7 @@ class DrawingView(DraftObject):
def getDXF(self, obj):
"""Return a DXF fragment."""
return utils.getDXF(obj)
return get_dxf.get_dxf(obj)
# Alias for compatibility with v0.18 and earlier