[New-bugs-announce] [issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

Ned Deily report at bugs.python.org
Thu Feb 12 13:05:46 CET 2009


New submission from Ned Deily <nad at acm.org>:

An instance of the shell script "Update Shell Profile.command"
         is installed in each "/Applications/Python x.x" folder.
         Clicking on the script allows the user to change the default
         Python version.  If the scripts are run more than once - say
         first to make 3.0 the default then 2.6 the default then back
         to 3.0 again - the script will fail to update the user's $PATH,
         forcing users to manually edit their shell profile.

SOLUTION Ensure that $PATH is updated if there are other Python
         frameworks already on its head.

         (This is not the most elegant solution since it leaves the
         previous versions later in the path but it is safer to
         only append to the user's profile - and a backup copy
         is made.)

APPLIES  py3k, 3.0, trunk, 2.6

----------
components: Macintosh
files: patch-nad0020.txt
messages: 81749
nosy: nad
severity: normal
status: open
title: OS X "Update Shell Profile" may not update $PATH if run more than once
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13049/patch-nad0020.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5225>
_______________________________________


More information about the New-bugs-announce mailing list