python package confusion

Devin Jeanpierre jeanpierreda at gmail.com
Tue Jul 24 09:49:31 CEST 2012


On Tue, Jul 24, 2012 at 1:38 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> I don't know about a bad idea or not, but it is certainly redundant,
> because Python automatically adds '' (equivalent to '.') to the very
> start of the search path.

No, it only does that if Python is reading commands from stdin, or if
Python was run with the -c option, or maybe some other situations. It
doesn't do it if you just run a program, as in "python myfile.py".

-- Devin



More information about the Python-list mailing list