Win a copy of High Performance Python for Data Analytics this week in the Python forum!

Mis Uszatek

Greenhorn
+ Follow
since Jul 17, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mis Uszatek

Notice the 'pathmunge' function. What it does is either prepend or append a single path top the PATH variable, depending on whether or not the 'after' argument is present:
To prepend /some/path to PATH

To append /some/path to PATH

This is similar to other entries in /etc/profile that use this function. Simply make sure to use pathmunge after it has been defined and before it becomes meaningless, that is before the line

And no, it does not make any sense to modify each user's ~/.profile separately. To provide a system-wide setting you should modify the system-wide /etc/profile instead. Commands in it will be executed upon each user's login.
18 years ago