Home hinzugefügt
commit
abffe58505
1 changed files with 7 additions and 0 deletions
7
Home.md
Normal file
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())
|
Loading…
Reference in a new issue