From 5b57adeef4d7fd960270fed0bbcf1e9e5f54885a Mon Sep 17 00:00:00 2001 From: Shayan Pooya Date: Fri, 14 Aug 2015 20:50:02 -0700 Subject: [PATCH] remove unnecessary files added to the worker zipfile fix issue #622 Thanks to @ErikDubbelboer. The newer versions of python print a warning message for duplicate files. The file finder is able to add these files and add them to the zipfile. --- lib/disco/worker/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/disco/worker/__init__.py b/lib/disco/worker/__init__.py index bfb74bc5d..d451c3ee7 100644 --- a/lib/disco/worker/__init__.py +++ b/lib/disco/worker/__init__.py @@ -239,8 +239,6 @@ def jobzip(self, job, **jobargs): jobzip = DiscoZipFile() jobzip.writepath(os.path.dirname(clxpath), exclude=('.pyc', '__pycache__')) jobzip.writepath(os.path.dirname(discopath), exclude=('.pyc', '__pycache__')) - jobzip.writesource(job) - jobzip.writesource(self) # Then, add any user-specified required files. from disco.util import iskv def get(key):