From 4255df2dc74bb3bcd6a8540625383654929e02e4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Apr 2011 22:19:09 -0600 Subject: [PATCH] Fix the example plugin upload script --- setup/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/upload.py b/setup/upload.py index 57c8e4cd54..e448bc11e4 100644 --- a/setup/upload.py +++ b/setup/upload.py @@ -347,9 +347,10 @@ class UploadUserManual(Command): # {{{ 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):