Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why is pylaucher in Python 3.3 being installed in Windows folder?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Piotr Dobrogost  
View profile  
 More options Oct 3 2012, 5:13 pm
Newsgroups: comp.lang.python
From: Piotr Dobrogost <p...@google-groups-2012.dobrogost.net>
Date: Wed, 3 Oct 2012 14:13:10 -0700 (PDT)
Local: Wed, Oct 3 2012 5:13 pm
Subject: Why is pylaucher in Python 3.3 being installed in Windows folder?
Why is pylauncher in Python 3.3 being installed in Windows folder and
not in Program Files folder? Installing into Windows folder was maybe
acceptable 10 years ago but not now...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven D'Aprano  
View profile  
 More options Oct 3 2012, 10:04 pm
Newsgroups: comp.lang.python
From: Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info>
Date: 04 Oct 2012 02:04:17 GMT
Local: Wed, Oct 3 2012 10:04 pm
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?

On Wed, 03 Oct 2012 14:13:10 -0700, Piotr Dobrogost wrote:
> Why is pylauncher in Python 3.3 being installed in Windows folder and
> not in Program Files folder? Installing into Windows folder was maybe
> acceptable 10 years ago but not now...

Read the PEP:

http://www.python.org/dev/peps/pep-0397/

--
Steven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Kelly  
View profile  
 More options Oct 3 2012, 11:22 pm
Newsgroups: comp.lang.python
From: Ian Kelly <ian.g.ke...@gmail.com>
Date: Wed, 3 Oct 2012 21:21:52 -0600
Local: Wed, Oct 3 2012 11:21 pm
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?
On Wed, Oct 3, 2012 at 8:04 PM, Steven D'Aprano

<steve+comp.lang.pyt...@pearwood.info> wrote:
> On Wed, 03 Oct 2012 14:13:10 -0700, Piotr Dobrogost wrote:

>> Why is pylauncher in Python 3.3 being installed in Windows folder and
>> not in Program Files folder? Installing into Windows folder was maybe
>> acceptable 10 years ago but not now...

> Read the PEP:

> http://www.python.org/dev/peps/pep-0397/

The PEP explains why it's in the Windows folder as opposed to the
System32 folder, but not why either of those locations should be
preferable to Program Files.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Rebert  
View profile  
 More options Oct 4 2012, 12:30 am
Newsgroups: comp.lang.python
From: Chris Rebert <c...@rebertia.com>
Date: Wed, 3 Oct 2012 21:30:14 -0700
Local: Thurs, Oct 4 2012 12:30 am
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?

Presumably because Program Files isn't part of the $PATH.
http://superuser.com/questions/124239/what-is-the-default-path-enviro...
Contrast (from the PEP): "However, the Windows directory is always on the path."

Now, as for why the launcher must be on the $PATH…*shrugs*

Cheers,
Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Piotr Dobrogost  
View profile  
 More options Oct 4 2012, 10:41 am
Newsgroups: comp.lang.python
From: Piotr Dobrogost <p...@google-groups-2012.dobrogost.net>
Date: Thu, 4 Oct 2012 07:41:08 -0700 (PDT)
Local: Thurs, Oct 4 2012 10:41 am
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?
On Oct 4, 6:30 am, Chris Rebert <c...@rebertia.com> wrote:

> Presumably because Program Files isn't part of the $PATH.http://superuser.com/questions/124239/what-is-the-default-path-enviro...
> Contrast (from the PEP): "However, the Windows directory is always on the path."

I guess that's the reason indeed.

> Now, as for why the launcher must be on the $PATH…*shrugs*

Now, the question is why not put pylauncher together with python.exe
now, when 3.3 has an option to add Python's folder to the PATH? In
case there are more than one Python installed this would mean changing
pylauncher when changing active Python (via PATH modification). Maybe
that's undesired? If so then installing to Program Files and adding
its folder to PATH the same way Python's folder is added would be much
better than installing into Windows folder.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Piotr Dobrogost  
View profile  
 More options Oct 4 2012, 11:32 am
Newsgroups: comp.lang.python
From: Piotr Dobrogost <p...@google-groups-2012.dobrogost.net>
Date: Thu, 4 Oct 2012 08:32:01 -0700 (PDT)
Local: Thurs, Oct 4 2012 11:32 am
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?
I raised this issue at http://bugs.python.org/issue16131

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Kelly  
View profile  
 More options Oct 4 2012, 11:51 am
Newsgroups: comp.lang.python
From: Ian Kelly <ian.g.ke...@gmail.com>
Date: Thu, 4 Oct 2012 09:51:10 -0600
Local: Thurs, Oct 4 2012 11:51 am
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?
On Thu, Oct 4, 2012 at 8:41 AM, Piotr Dobrogost

<p...@google-groups-2012.dobrogost.net> wrote:
> Now, the question is why not put pylauncher together with python.exe
> now, when 3.3 has an option to add Python's folder to the PATH? In
> case there are more than one Python installed this would mean changing
> pylauncher when changing active Python (via PATH modification). Maybe
> that's undesired? If so then installing to Program Files and adding
> its folder to PATH the same way Python's folder is added would be much
> better than installing into Windows folder.

It shouldn't go in the Python folder.  There can be more than one
active Python installation, but there should really be only one active
pylauncher installation.  They should also be kept separate for
uninstallation.  So the launcher should have its own separate Program
Files folder.

I don't see why it's so important that the location be on the path in
the first place, though.  As I understand it this tool is primarily
intended to support the .py and .pyw file associations, and those are
best looked up in the registry, not on the path.  The only reason I
can see for having it on the path is for when you want to explicitly
invoke it on the command line, and for that we can either add the
Program Files location to the path or just let the user deal with
setting the path, as many Windows programs do.

> I raised this issue at http://bugs.python.org/issue16131

Unfortunately, with Python 3.3 already released, I suspect that it's
probably too late to change this.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oscar Benjamin  
View profile  
 More options Oct 4 2012, 12:40 pm
Newsgroups: comp.lang.python
From: Oscar Benjamin <oscar.j.benja...@gmail.com>
Date: Thu, 4 Oct 2012 17:40:16 +0100
Local: Thurs, Oct 4 2012 12:40 pm
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?
On 4 October 2012 16:51, Ian Kelly <ian.g.ke...@gmail.com> wrote:

Having them on PATH means that you can do:

    > py script.py

and the effect will be analogous to (in a unix shell):

    $ ./script.py

Of course the idea with the launcher is that you just do

    > script.py

The difference - on my machine - between explicitly using invoking py
and allowing the file association to do it is that the latter breaks
when redirecting stdin (this is an old bug in Windows):

Q:\>script.py < foo
Traceback (most recent call last):
  File "Q:\script.py", line 5, in <module>
    for line in sys.stdin:
IOError: [Errno 9] Bad file descriptor

Q:\>py script.py < foo
LOTS OF STUFF

It would be good to be able to choose where to put the launchers.
Unless I missed something that wasn't an option in the installer. It
lets you choose the location of all the other files by choosing where
to put the Python folder. Also it's not as simple as just moving them
to where you want after install since they are associated with the
registry keys for running .py and .pyw files.

As it happens, since I don't have access to the WINDOWS folder on my
work machine, the installer did just put them into the Python33 folder
(which is fine with me).

Oscar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hammond  
View profile  
 More options Oct 6 2012, 10:33 pm
Newsgroups: comp.lang.python
From: Mark Hammond <skippy.hamm...@gmail.com>
Date: Sun, 07 Oct 2012 13:33:38 +1100
Local: Sat, Oct 6 2012 10:33 pm
Subject: Re: Why is pylaucher in Python 3.3 being installed in Windows folder?
On 5/10/2012 2:40 AM, Oscar Benjamin wrote:

> Having them on PATH means that you can do:

>      > py script.py

> and the effect will be analogous to (in a unix shell):

>      $ ./script.py

> Of course the idea with the launcher is that you just do

>      > script.py

Unless you want a specific version - particularly for testing - eg:

% py -3.2 script.py

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »