Why doesn't Python remember the initial directory?

Piet van Oostrum piet at vanoostrum.org
Mon Aug 20 16:06:33 EDT 2012


kj <no.email at please.post> writes:

> This means that no library code can ever count on, for example,
> being able to reliably find the path to the file that contains the
> definition of __main__.  That's a weakness, IMO.  

On Unix based systems there is no reliable way to find out this
information. So how could Python reliably supply this?
-- 
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]



More information about the Python-list mailing list