On Tue, 2011-07-12 at 12:56 -0700, Shawn Walker wrote:
> Note that 'sudo' clears environment by default, so if you're using sudo 
> to execute the commands, and PYTHONPATH is set in your own environment, 
> you'll have to execute sudo this way:
> 
> sudo PYTHONPATH=$PYTHONPATH <cmd>

Yep, further to what Shawn says, you can change how PYTHONPATH is set
when you use sudo.  On my machine, I have:

root@linn:/home/timf/projects/punchin# cd /
root@linn:/# more /etc/sudoers.d/timf 
Defaults env_keep += "PYTHONPATH"
timf ALL=(ALL) ALL

        cheers,
                        tim


_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to