[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best practices for data files in /usr/share



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


Reply to: