On Wed, 2009-11-04 at 16:09 -0800, Danek Duvall wrote: > Erik Trauschke wrote: > > > Actually it is possible to set an environment variable on a per-instance > > basis. However, this means that someone needs to set two variables in SMF > > which have to match up to be useful. Setting the PYTHONPATH in the method > > script just takes away one possible source of failure, so you only have > > to set the pkg_env variable and everything else is handled automatically. > > Okay, makes sense. > > If you ever elevate this to a documented interface, I'd suggest pkg_root > instead, but whatever you call it, the code looks fine.
It's funny, that was my original idea. Dan suggested something like virtual_env but I figured it's not really virtual so I decided for pkg_env. It's a simple fix, I'm +1 for pkg_root. Erik _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
