mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:09:02 +08:00
3mf reader now gives warning if it couldn't load cElementTree
This commit is contained in:
parent
867463f718
commit
726b935b78
@ -16,6 +16,7 @@ import zipfile
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import xml.etree.cElementTree as ET
|
import xml.etree.cElementTree as ET
|
||||||
|
Logger.log("w", "Unable to load cElementTree, switching to slower version")
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user