mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
make sure we write addon .py files as they've been uploaded
This commit is contained in:
parent
1d2afd1ab3
commit
1d6eff36b1
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class AddonManager(object):
|
||||||
if fname.endswith(".py"):
|
if fname.endswith(".py"):
|
||||||
# .py files go directly into the addon folder
|
# .py files go directly into the addon folder
|
||||||
path = os.path.join(self.addonsFolder(), fname)
|
path = os.path.join(self.addonsFolder(), fname)
|
||||||
open(path, "w").write(data)
|
open(path, "wb").write(data)
|
||||||
return
|
return
|
||||||
# .zip file
|
# .zip file
|
||||||
z = ZipFile(StringIO(data))
|
z = ZipFile(StringIO(data))
|
||||||
|
|
Loading…
Reference in a new issue