What you say is true but Jonathan is talking at startup, before the
web server starts and before any thread is created.

On Jan 5, 10:19 am, stefaan <[email protected]> wrote:
> > > Yes they can. They should all run from the main web2py folder (do not
> > > use os.chdir(...)!)
>
> > Digression: I'd like to fix that eventually. It's not so bad to require the 
> > cwd to be web2py for startup, but it shouldn't matter after that.
>
> I think it's a bad idea to use os.chdir because AFAIK it's not thread-
> safe. If you do os.chdir in one thread (or even process?)
> it has effect on all threads (and processes?), which seems very
> dangerous.

Reply via email to