Bernd Wurst commited on 2024-11-16 19:46:19
Zeige 3 geänderte Dateien mit 6 Einfügungen und 4 Löschungen.
| ... | ... |
@@ -6,7 +6,7 @@ |
| 6 | 6 |
<sourceFolder url="file://$MODULE_DIR$/lib/python" isTestSource="false" /> |
| 7 | 7 |
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> |
| 8 | 8 |
</content> |
| 9 |
- <orderEntry type="inheritedJdk" /> |
|
| 9 |
+ <orderEntry type="jdk" jdkName="Python 3.12" jdkType="Python SDK" /> |
|
| 10 | 10 |
<orderEntry type="sourceFolder" forTests="false" /> |
| 11 | 11 |
</component> |
| 12 | 12 |
</module> |
| 13 | 13 |
\ No newline at end of file |
| ... | ... |
@@ -3,5 +3,5 @@ |
| 3 | 3 |
<component name="Black"> |
| 4 | 4 |
<option name="sdkName" value="Python 3.10" /> |
| 5 | 5 |
</component> |
| 6 |
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" project-jdk-type="Python SDK" /> |
|
| 6 |
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" /> |
|
| 7 | 7 |
</project> |
| 8 | 8 |
\ No newline at end of file |
| ... | ... |
@@ -187,9 +187,11 @@ if __name__ == '__main__': |
| 187 | 187 |
# FIXME: Die Metadaten sind noch nicht gültig, da scheint es einen Fehler in der drafthorse-Library zu geben |
| 188 | 188 |
pdfdata = attach_xml(pdfdata, xmldata) |
| 189 | 189 |
|
| 190 |
- f = open(filename, "wb") |
|
| 190 |
+ with open(filename.replace('.pdf', '.xml'), 'wb') as xml:
|
|
| 191 |
+ xml.write(xmldata) |
|
| 192 |
+ |
|
| 193 |
+ with open(filename, "wb") as f: |
|
| 191 | 194 |
f.write(pdfdata) |
| 192 |
- f.close() |
|
| 193 | 195 |
print(filename) |
| 194 | 196 |
|
| 195 | 197 |
#print(textdata) |
| 196 | 198 |