In any multi-threaded Python program (and not just Python), you should not use os.chdir, and you should not modify sys.path if you have more than one thread. This is not safe because it affects other threads. In addition, you should not sys.path.append () in a loop because it could explode.
- . - / -, if ochchir/sys.path.append , .
web2py / -. , (, , http). , , , , , , API (request.folder, local_import).
os.chdir sys.path.append, ( web2py). , , Python.
web2py.