On Sat, Sep 21, 2013 at 11:36:05PM +0600, Andrey Rahmatullin wrote:
So, what are the best practices for moving data files out of the module directories?

This is how we do it in Sphinx:

1) There's only one statement that uses __file__ (thanks, upstream!):
http://sources.debian.net/src/sphinx/1.1.3%2Bdfsg-4/sphinx/__init__.py#L21

2) We run tests against source that has this line kept intact. Then we patch the line using sed:
http://sources.debian.net/src/sphinx/1.1.3%2Bdfsg-4/debian/rules#L66

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130921191149.ga20...@snusmumriken.jwilk.net

Reply via email to