Reputation: 1273
Is there a way to add a simple module (e.g. mymodule.py) which resides in the src/ directory to buildout for Plone 4? To be more specific, I have a former module I used as an ExternalMethod in Plone 2.5, and I'm trying to use it in Plone 4 without creating a package or using paster and creating an egg. How would I do this?
Upvotes: 2
Views: 148
Reputation: 4496
You have three options:
/<buildout-root>/parts/instance/Extensions
or /<buildout-root>/parts/client1/Extensions
You can find a similar question here.
edit: it turns out that the last option is not suitable...so you have only 2 options + the one from @djay
Upvotes: 0
Reputation: 1058
See http://pypi.python.org/pypi/plone.recipe.zope2instance You can just the extra_paths option. That would allow it to be imported from other code.
Upvotes: 4