mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-10 16:02:33 +12:00
Fixes bug #27, probably
This commit is contained in:
parent
c14f2493fb
commit
085a9e4a2d
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue