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/018694.html below:

Change to sys.path[0] for Python 2.3

[Python-Dev] Re: Change to sys.path[0] for Python 2.3 [Python-Dev] Re: Change to sys.path[0] for Python 2.3Martin v. Loewis martin@v.loewis.de
Wed, 21 Nov 2001 22:02:21 +0100
> This insertion occurs after a number of imports have already
> occurred.  Specifically, it occurs after the import of site, os, and
> sitecustomize.  This is confusing.  It is clear that sys.path should
> not change unless the user changes it.

I disagree. It is clear that sys.path will change during "bootstrap",
e.g. as the result of processing .pth files.

> If we want the directory of the script to be sys.path[0], then an
> absolute path should be inserted.

I think this would be unimplementable in the general case.

> If everyone agrees, I will create a patch.

It's not clear to me what this patch would do, so I disagree.

Regards,
Martin



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