[Zope] Cautionary tale -- OSError: [Errno 2] No such file or directory
Toby Dickenson
tdickenson@geminidataloggers.com
Fri, 4 Apr 2003 17:29:21 +0100
On Friday 04 April 2003 4:51 pm, John Ziniti wrote:
> It then dawned on me that we do a lot of "os.chdir()" in our Products
> to make sure we are in a directory we can write in. We also have
> at least one Product that deletes it's working directory after it is done.
Beware that chdir affects all threads in a process. If this method is invoked
by two concurrent threads then one will not be writing in the directory that
it expected.
> Hope this helps someone sometime,
Indeed
--
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson