[Pythonmac-SIG] Altering .profile during installation--a question
Ronald Oussoren
ronaldoussoren at mac.com
Fri Jun 23 11:19:03 CEST 2006
On 22-jun-2006, at 23:50, Bob Ippolito wrote:
> On Jun 22, 2006, at 2:39 PM, Russell E. Owen wrote:
>
>> As was recently discussed the 2.5b1 installer modifies .profile to
>> put
>> the framework python's bin directory on the path.
>>
>> But...what happens if one runs the installer again, or installs a
>> later
>> python. Does it somehow realize modification has already been done
>> and
>> need not be done again?
>>
>> If it realizes the modification has been done, how does it do that?
>>
>> (In particular, I have my .bash_profile put the following on my PATH:
>> /Library/Frameworks/Python.framework/Versions/Current/bin
>> Will the installer see that on PATH and realize I don't need .profile
>> mucked with?)
>
> I think it may add it again, but that's harmless.
The installer should notice that your PATH already contains the right
directory and will not update your profile again. You can test this
by using the .command file in /applications/macpython 2.5. That's the
same script as used by the installer.
Ronald
More information about the Pythonmac-SIG
mailing list