On Mar 16, 12:40 am, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > Leo Kislov wrote: > > You're changing environmental variable __kabc_ldap that is shared > > between your threads. Environment is not designed for that kind of > > usage, it was designed for settings. Either use an option to set > > output file or just redirect stdout. If the interface of ldapsearch is > > so lame that it requires environmental variable use env to set the > > variable: "env __kabc_ldap=/tmp/wrjhdsf ldapsearch ..." > > The environment variable is set with temp_file_name which gets the name from > tempfile.mkstemp(), which is run in every thread. So I don't think the > environment variable is going to be the same.
But you miss the fact that there is only one environment per process. -- Leo -- http://mail.python.org/mailman/listinfo/python-list