how to get the path of the module from a class code example
Example 1: find location of a class in python
import inspect
inspect.getfile(C.__class__)
Example 2: find location of a class in python
import sys, os
os.path.abspath(sys.modules[LocationArtifact.__module__].__file__)