Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

Commit

Permalink
Use a local instance to determine the working set
Browse files Browse the repository at this point in the history
  • Loading branch information
wichert committed Jun 23, 2008
1 parent 70b6294 commit a1b3343
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions collective/recipe/modwsgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
application = loadapp("config:%(config)s")
"""

class Recipe(Eggs):
class Recipe:
def __init__(self, buildout, name, options):
super(Recipe, self).__init__(buildout, name, options)
self.buildout=buildout
self.name=name
self.options=options
self.logger=logging.getLogger(self.name)


if "config-file" not in options:
self.logger.error("You need to specify either a paste configuration file")
Expand All @@ -25,7 +28,8 @@ def __init__(self, buildout, name, options):


def install(self):
reqs,ws=self.working_set()
egg=Eggs(self.buildout, self.options["recipe"], self.options)
reqs,ws=egg.working_set()
path=[pkg.location for pkg in ws]

output=WRAPPER_TEMPLATE % dict(
Expand Down
4 changes: 4 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
1.0 - Unreleased
----------------

* Do not make the recipe a subclass of zc.recipe.egg.Eggs but
use a local instance to determine the working set.
[wichert]

* Format the sys.path changes in the wrapper to make it more
human readable. This is purely cosmetic to help with debugging.
[wichert]
Expand Down

0 comments on commit a1b3343

Please sign in to comment.