mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:15:53 +08:00
Add import redirects with deprecation warning so we don't break plugin compatibility
This commit is contained in:
parent
b2e2f088c4
commit
da736cc4be
4
cura/PrinterOutput/PrintJobOutputModel.py
Normal file
4
cura/PrinterOutput/PrintJobOutputModel.py
Normal 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
|
4
cura/PrinterOutput/PrinterOutputModel.py
Normal file
4
cura/PrinterOutput/PrinterOutputModel.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import warnings
|
||||||
|
warnings.warn("Importing cura.PrinterOutput.PrinterOutputModel has been deprecated since 4.1, use cura.PrinterOutput.Models.PrinterOutputModel inststad", DeprecationWarning, stacklevel=2)
|
||||||
|
# We moved the the models to one submodule deeper
|
||||||
|
from cura.PrinterOutput.Models.PrinterOutputModel import PrinterOutputModel
|
4
cura/PrinterOutputDevice.py
Normal file
4
cura/PrinterOutputDevice.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import warnings
|
||||||
|
warnings.warn("Importing cura.PrinterOutputDevice has been deprecated since 4.1, use cura.PrinterOutput.PrinterOutputDevice inststad", DeprecationWarning, stacklevel=2)
|
||||||
|
# We moved the PrinterOutput device to it's own submodule.
|
||||||
|
from cura.PrinterOutput.PrinterOutputDevice import PrinterOutputDevice, ConnectionState
|
Loading…
x
Reference in New Issue
Block a user