mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
binary files on windows
This commit is contained in:
parent
7333754781
commit
d6238ee34c
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ class GetShared(QDialog):
|
||||||
for l in z.namelist():
|
for l in z.namelist():
|
||||||
if l == "shared.anki":
|
if l == "shared.anki":
|
||||||
dpath = os.path.join(dd, tit + ".anki")
|
dpath = os.path.join(dd, tit + ".anki")
|
||||||
open(dpath, "w").write(z.read(l))
|
open(dpath, "wb").write(z.read(l))
|
||||||
elif l.startswith("shared.media/"):
|
elif l.startswith("shared.media/"):
|
||||||
try:
|
try:
|
||||||
os.mkdir(os.path.join(dd, tit + ".media"))
|
os.mkdir(os.path.join(dd, tit + ".media"))
|
||||||
|
@ -200,7 +200,7 @@ class GetShared(QDialog):
|
||||||
# pass
|
# pass
|
||||||
# open(os.path.join(pd, 2))
|
# open(os.path.join(pd, 2))
|
||||||
else:
|
else:
|
||||||
open(os.path.join(pd, tit + ext), "w").write(data)
|
open(os.path.join(pd, tit + ext), "wb").write(data)
|
||||||
showInfo(_("Plugin downloaded. Please restart Anki."),
|
showInfo(_("Plugin downloaded. Please restart Anki."),
|
||||||
parent=self)
|
parent=self)
|
||||||
self.ok = True
|
self.ok = True
|
||||||
|
|
Loading…
Reference in a new issue