[ckan-dev] Paths to resources within eggs

Rufus Pollock rufus.pollock at okfn.org
Mon Mar 7 14:35:38 UTC 2011


On 4 March 2011 09:25, Seb Bacon <seb.bacon at gmail.com> wrote:
> Hi,
>
> I'm referring to template and css resources that are inside a package, thus:
>
>   https://bitbucket.org/sebbacon/ckanext-datagm/src/b6e670e77e92/ckanext/datagm/__init__.py#cl-28
>
> This works as long as I'm using develop eggs, but if I use zipped
> eggs, of course it breaks.

Don't use zipped eggs (ever!). Set zip_safe=False in setup.py (it
should be set by default and if not we should fix the paster command
that creates extensions from a template).

Rufus

> Can someone with more egg-fu than me suggest what a solution is to
> distributing resources like this might look like?
>
> Thanks,
>
> Seb
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>



-- 
Co-Founder, Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age
http://www.okfn.org/ - http://blog.okfn.org/




More information about the ckan-dev mailing list