Thanks for help. But it is not exactly solution I am looking for. I would like to do it from python script. For example
update_env() #<- this function will change LD_LIBRARY_PATH import extension_that_depends_on_shared_library Roman On Mar 31, 2005 9:35 AM, John Abel <[EMAIL PROTECTED]> wrote: > With Solaris 8+ you would use the command crle, with Linux > (RedHat/SuSE/Mandrake) you need to add the relevant directories > /etc/ld.so.conf and run ldconfig. I've not got a Debian box to hand, so > I can't say if it matches, but that should give you a pointer. I think I should have permissions to do it. (more over users of my scripts should have permissions ) > HTH > > J > > Roman Yakovenko wrote: > > >On Mar 31, 2005 9:20 AM, John Abel <[EMAIL PROTECTED]> wrote: > > > > > >>What OS? Linux? Solaris? > >> > >> > > > >Does it matter? If so, please explain why ( lack of knowledge ) > >I am using Linux ( Debian Surge ) > > > >Thanks > > > > > > > > > >>J > >> > >>Roman Yakovenko wrote: > >> > >> > >> > >>>Hi. I have small problem. I need to load extension module that depends > >>>on shared library. Before actually importing module I tried to edit > >>>os.environ or to call directly to os.putenv without any success - > >>>shared library was not found. I tried to search the Internet for the > >>>answer. The only approach I saw was to set LD_LIBRARY_PATH before > >>>invoking python script. I don't like this solution. > >>> > >>>Roman > >>> > >>> > >>> > >>> > > > > > > > > -- > *John Abel > Senior Unix Administrator* > PA News Limited > www.pa.press.net <http://www.pa.press.net> > E-Mail address: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Telephone Number : 01430 455553 > Fax Number : 0870 1240192 > Mobile Number : 07971 611356 > The Bishop's Manor, Market Place, Howden, DN14 7BL > PA News Limited, 292 Vauxhall Bridge Road, London SW1V 1AE. Registered > in England No. 3891053. > -- http://mail.python.org/mailman/listinfo/python-list