Use module.__path__[0] instead of module.__file__
#2769
Merged
module.__path__[0] instead of module.__file__
#2769