Fixes bug #27, probably

This commit is contained in:
Olivier Keshavjee 2016-04-18 09:24:17 +02:00
parent c14f2493fb
commit 085a9e4a2d

View file

@ -4,7 +4,7 @@
# Version 0 of file saving format.
# Was used at the begining and up util version XXX when
# it was superseded by Version 1, which is more open and flexible
import os
import zipfile
from PyQt5.QtCore import QModelIndex, Qt
@ -178,7 +178,7 @@ def loadFilesFromZip(zipname):
zf = zipfile.ZipFile(zipname)
files = {}
for f in zf.namelist():
files[f] = zf.read(f)
files[os.path.normpath(f)] = zf.read(f)
return files