This commit is contained in:
blueloveTH 2024-12-16 19:54:08 +08:00
parent 2ef181f0f4
commit 4c533b03cb

View File

@ -65,8 +65,8 @@ static void c11_sbuf__write_type_path(c11_sbuf* path_buf, py_Type type) {
c11_sbuf__write_cstr(path_buf, py_name2str(ti->name));
return;
}
const char* mod_name = py_tostr(py_getdict(&ti->module, __name__));
c11_sbuf__write_cstr(path_buf, mod_name);
const char* mod_path = py_tostr(py_getdict(&ti->module, __path__));
c11_sbuf__write_cstr(path_buf, mod_path);
c11_sbuf__write_char(path_buf, '.');
c11_sbuf__write_cstr(path_buf, py_name2str(ti->name));
}