mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 16:55:47 +02:00
Fix the example plugin upload script
This commit is contained in:
parent
98b2dba03f
commit
4255df2dc7
1 changed files with 2 additions and 1 deletions
|
|
@ -347,9 +347,10 @@ def build_plugin_example(self, path):
|
|||
with NamedTemporaryFile(suffix='.zip') as f:
|
||||
os.fchmod(f.fileno(),
|
||||
stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH|stat.S_IWRITE)
|
||||
with CurrentDir(self.d(path)):
|
||||
with CurrentDir(path):
|
||||
with ZipFile(f, 'w') as zf:
|
||||
for x in os.listdir('.'):
|
||||
if x.endswith('.swp'): continue
|
||||
zf.write(x)
|
||||
if os.path.isdir(x):
|
||||
for y in os.listdir(x):
|
||||
|
|
|
|||
Loading…
Reference in a new issue