Use __file__ attribute of loaded module for egg modules
Since pip >= 23, the Distribution location does not point to the development directory.
Closes #12582 (closed)
Since pip >= 23, the Distribution location does not point to the development directory.
Closes #12582 (closed)