A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-November/018708.html below:

[Python-Dev] Change to sys.path[0] for Python 2.3

[Python-Dev] Change to sys.path[0] for Python 2.3James C. Ahlstrom jim@interet.com
Mon, 26 Nov 2001 09:17:43 -0500
Jack Jansen wrote:
> 
> I'm not too thrilled about this, especially not in the 2.2 release cycle. The
> sys.path logic is difficult, and everytime a change was made on one platform
> this change immedeately broke things on all other platforms. For instance: on

I agree, and I am very worried about breaking imports on platforms
which I do not have, and which I can not test.  But I am working
on zip imports, which is a Good Thing.  While working on this I
can fix other things which don't seem quite right.  If things break,
I currently have time to fix them due to reduced pressure at work.

And of course it is for 2.3, not 2.2.

> And the "python -c" mod I really disagree with. 'python -c "import foo"' in
> the directory containing foo.py is the standard way of using this, which you
> would break.

OK, I think you are right here.  The "-c" option should insert
the current directory.  Currently it inserts "".

JimA



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4