Home hinzugefügt

Frederik Jaeckel 2024-12-12 12:54:30 +00:00
commit abffe58505

7
Home.md Normal file

@ -0,0 +1,7 @@
Factur-x verwendet aus der Python-lib _importlib.resources_ die Funktion _files_. Diese gibt es in Python 3.8 nicht. Als Workaround kann man das umbauen:
import pathlib
package_path = pathlib.PosixPath('/'.join(__file__.split('/')[:-1] + [xsd_file]))
xsd_etree_obj = etree.parse(package_path.open())
# xsd_etree_obj = etree.parse(importlib.resources.files(__package__)
# .joinpath(xsd_file).open())