On Sep 28, 2012, at 12:53 PM, Yaroslav Halchenko wrote:

>I just vaguely remember that there were problems in some projects relying on
>__file__ (some times opportunistically with os.path.realpath) to deduce the
>path to other components of the project, which might had been symlinked
>elsewhere ;-) and that is what dh_python has addressed:

Ah, yes, don't do that. :)  Use the pkg_resources API if you need to locate
files within your package.

Cheers,
-Barry


-- 
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/20120928132434.4dad0...@resist.wooz.org

Reply via email to