Add import redirects with deprecation warning so we don't break plugin compatibility

This commit is contained in:
Jaime van Kessel 2019-04-25 14:11:42 +02:00
parent b2e2f088c4
commit da736cc4be
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,4 @@
import warnings
warnings.warn("Importing cura.PrinterOutput.PrintJobOutputModel has been deprecated since 4.1, use cura.PrinterOutput.Models.PrintJobOutputModel inststad", DeprecationWarning, stacklevel=2)
# We moved the the models to one submodule deeper
from cura.PrinterOutput.Models.PrintJobOutputModel import PrintJobOutputModel