Python module path directory find
1. (module_name).__file__ ex, >>> import pandas >>> pandas.__file__ '/home/user/.local/lib/python3.8/site-packages/pandas/__init__.py' 2. os.path.abspath() ex, >>> import os >>> os.path.abspath(pandas.__file__) '/home/user/.local/lib/python3.8/site-packages/pandas/__init__.py' * module directory >>> os.path.dirname(pandas.__file__) '/home/user/.local/lib/python3.8/site-packages/pandas' 3. inspec..