<div dir="ltr"><div style="font-size:14px;color:rgb(0,0,0);font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23px">HI,I <span style="line-height:1.5;color:rgb(34,34,34);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px"> </span><span style="line-height:1.5;color:rgb(34,34,34);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px">want to dump the python script when some application(android's app) use the python engine.they embedding python into its app.</span><a href="https://docs.python.org/2/extending/embedding.html" title="previous chapter" target="_blank" style="color:rgb(152,219,204);outline:none;text-decoration:none;font-size:14.3999996185303px;font-family:sans-serif;line-height:normal;background-color:rgb(28,78,99)"></a></div><div style="font-size:14px;color:rgb(0,0,0);font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23px"><span style="line-height:1.5;color:rgb(34,34,34);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif"><font size="4" style="line-height:30px"><br></font></span></div><div style="font-size:14px;color:rgb(0,0,0);font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23px"><span style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:16.890625px"><font color="#ff0000" size="4" style="line-height:30px"> I can dump the script from an app which use the lua engine through the luaL_loadbuffer or luaL_loadfile (just hook this function,and dump the lua script by the (char *)buffer and size_t )</font></span></div><div style="font-size:14px;color:rgb(0,0,0);font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23px"><br></div><div style="font-size:14px;color:rgb(0,0,0);font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23px"><font color="#222222" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:15px;line-height:22px">And,I want to know that:</span></font></div><div style="font-size:14px;color:rgb(0,0,0);font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23px"><font color="#222222" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:15px;line-height:22px"><br></span></font></div><p style="line-height:19.5px;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif">Is there functions like the <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">luaL_loadfile</code> or <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">luaL_loadbuffer</code> on python's source to read the python's file,so I cann't through this function to get the (char *)buffer and size so to get the *.py or *.pyc ?</p><p style="line-height:19.5px;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif">In other words,which C/C++ function contribute to load the all python's script or pyc,I want to dump the scripts in that.</p><p style="line-height:19.5px;margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif">Thank you  very much.</p></div>