Skip to content

Commit

Permalink
remove unnecessary files added to the worker zipfile
Browse files Browse the repository at this point in the history
fix issue discoproject#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.
  • Loading branch information
pooya committed Aug 15, 2015
1 parent 14e726f commit 5b57ade
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/disco/worker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5b57ade

Please sign in to comment.