__file__ vs __FILE__

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sat Nov 3 21:06:20 EDT 2007


klenwell wrote:
> Bjoern Schliessmann wrote:

>> I use os.path.dirname(os.path.abspath(__file__))
> 
> That makes sense, as it is almost a literal translation of what
> I'm used to using in PHP.  Thanks for pointing this out.

You're welcome, happy coding :)

Regards,


Björn

-- 
BOFH excuse #286:

Telecommunications is downgrading.




More information about the Python-list mailing list