mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fixes for all of the plugins. Added a script to invoke mypy. (I'm stiiiick of .bat files. They are just broken.)
This commit is contained in:
parent
fb70eb6813
commit
1b43e4981e
12 changed files with 62 additions and 20 deletions
|
@ -17,8 +17,10 @@ from cura.Settings.ExtruderManager import ExtruderManager
|
|||
from cura.QualityManager import QualityManager
|
||||
from UM.Scene.SceneNode import SceneNode
|
||||
|
||||
MYPY = False
|
||||
try:
|
||||
import xml.etree.cElementTree as ET
|
||||
if not MYPY:
|
||||
import xml.etree.cElementTree as ET
|
||||
except ImportError:
|
||||
Logger.log("w", "Unable to load cElementTree, switching to slower version")
|
||||
import xml.etree.ElementTree as ET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue