Skip to content

Commit

Permalink
Gezippten XML-Dateien kommen auch als .xml.zip vor
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 8, 2020
1 parent d9c46f3 commit 9d83794
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion alkisImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,14 @@ def importALKIS(self):
self.logDb("{} wurde entpackt.".format(fn))

elif fn.lower().endswith(".zip"):
src = fn[:-4] + ".xml"
src = fn[:-4]
if not src.endswith(".xml"):
src += ".xml"

if src not in sizes:
logDb("Größe der Datei {} nicht gefunden.".format(src))
break

size = sizes[src]

self.status("{} wird extrahiert.".format(fn))
Expand Down

0 comments on commit 9d83794

Please sign in to comment.