Re: [Python-Dev] PythonCore\CurrentVersion

2006-03-12 Thread Martin v. Löwis
Tim Peters wrote: >>I believe I documented it many moons ago. I don't think CurrentVersion was >>ever implemented (or possibly was for a very short time before being >>removed). The "registered modules" concept was misguided and AFAIK is not >>used by anyone - IMO it should be deprecated (if not

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-11 Thread Tim Peters
[Guido] > I tried your experiment but added 'print sys.argv[0]' and didn't see > that. sys.argv[0] is the path to the script. My mistake! You're right, sys.argv[0] is the path to the script for me too. [Tim] >> The directory of the script being run was >> nevertheless in sys.path[0] on both Wind

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-11 Thread Guido van Rossum
On 10/11/05, Tim Peters <[EMAIL PROTECTED]> wrote: > [Tim] > >> Well, that's in interactive mode, and I see sys.path[0] == "" on both > >> Windows and Linux then. I don't see "" in sys.path on either box in > >> batch mode, although I do see the absolutized path to the current > >> directory in sy

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-11 Thread Tim Peters
[Tim] >> Well, that's in interactive mode, and I see sys.path[0] == "" on both >> Windows and Linux then. I don't see "" in sys.path on either box in >> batch mode, although I do see the absolutized path to the current >> directory in sys.path in batch mode on Windows but not on Linux -- but >> Ma

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-11 Thread Guido van Rossum
On 10/11/05, Tim Peters <[EMAIL PROTECTED]> wrote: > Well, that's in interactive mode, and I see sys.path[0] == "" on both > Windows and Linux then. I don't see "" in sys.path on either box in > batch mode, although I do see the absolutized path to the current > directory in sys.path in batch mode

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-11 Thread Tim Peters
[Tim Peters] >>> never before this year -- maybe sys.path _used_ to contain the current >>> directory on Linux?). [Fred L. Drake, Jr.] >> It's been a long time since this was the case on Unix of any variety; I >> *think* this changed to the current state back before 2.0. [Martin v. Löwis] > Pleas

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-10 Thread Martin v. Löwis
Fred L. Drake, Jr. wrote: > On Monday 10 October 2005 18:42, Tim Peters wrote: > > never before this year -- maybe sys.path _used_ to contain the current > > directory on Linux?). > > It's been a long time since this was the case on Unix of any variety; I > *think* this changed to the current s

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-10 Thread Fred L. Drake, Jr.
On Monday 10 October 2005 18:42, Tim Peters wrote: > never before this year -- maybe sys.path _used_ to contain the current > directory on Linux?). It's been a long time since this was the case on Unix of any variety; I *think* this changed to the current state back before 2.0. -Fred -- F

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-10 Thread Mark Hammond
> Suppose we run script.py while playground/ is the current directory. > I'm using 2.4.2 here, but doubt it matters much. No Python-related > envars are set. > > Windows (and the PIL and pywin32 extensions are installed here): > > C:\playground>\python24\python.exe someother\script.py > ['C:\\play

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-10 Thread Tim Peters
[Martin v. Löwis] >> What happened to the CurrentVersion registry entry documented at >> >> http://www.python.org/windows/python/registry.html >> >> AFAICT, even the python15.wse file did not fill a value in this >> entry (perhaps I'm misinterpreting the wse file, though). >> >> So was this ever us

Re: [Python-Dev] PythonCore\CurrentVersion

2005-10-09 Thread Mark Hammond
> What happened to the CurrentVersion registry entry documented at > > http://www.python.org/windows/python/registry.html > > AFAICT, even the python15.wse file did not fill a value in this > entry (perhaps I'm misinterpreting the wse file, though). > > So was this ever used? Why is it documented,

[Python-Dev] PythonCore\CurrentVersion

2005-10-08 Thread Martin v. Löwis
What happened to the CurrentVersion registry entry documented at http://www.python.org/windows/python/registry.html AFAICT, even the python15.wse file did not fill a value in this entry (perhaps I'm misinterpreting the wse file, though). So was this ever used? Why is it documented, and who docum