[Python-Dev] Excluding the current path from module search path?
Benjamin Peterson
benjamin at python.org
Tue Aug 25 18:31:01 CEST 2009
2009/8/25 Chris Withers <chris at simplistix.co.uk>:
> Hi All,
>
> I'm being bitten by this issue:
>
> http://bugs.python.org/issue1734860
>
> I'm not sure I agree with Daniel's closing of it so thought I'd ask here...
>
> Am I right in thinking that the general idea is that "the current working
> directory at the time of invoking a script or interpreter ends up on the
> python path" or should I be thinking "the directory that a script exists in
> should end up on the python path"?
The latter.
>
> If the latter, then what happens in the case of just starting up an
> interpreter?
Because '' is prepended to sys.path then.
--
Regards,
Benjamin
More information about the Python-Dev
mailing list