PyCodeObject.co_filename

string (where it was loaded from)

struct PyCodeObject
PyObject* co_filename;

Meta