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

Re: Ideal directory structure?

Le samedi 30 janvier 2010 à 15:32 +0100, Pietro Battiston a écrit : 
> Then, in my apps, I put
> not_installed_dir = os.path.dirname(os.path.realpath(__file__))

Every time you use introspection features (like __file__) for something
else than introspection, you have completely failed somewhere in the
design process.

__file__ is a plague. If it wasn’t here, people would have, long ago,
developed correct distribution systems for Python instead of using such
an unreliable way of determining the filesystem layout.

 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

Reply to: