Q:

Why can't I find '__path__' in django.db.__init__.py?

backend_dir = os.path.join(__path__[0], 'backends')

Why can't I find it?

A:

Set settings.DATABASE_ENGINE in settings.py.
The execution reaches the line you mentioned only if the back-end is not standard.

