Reloading the mod should be enough. I imagine that mod_python respects anything that the interpreter would do as if it was running standalone.<div><br></div><div>Reloading modules is potentially hazardous and you should be careful with it: <a href="http://stackoverflow.com/questions/684171/how-to-re-import-an-updated-package-while-in-python-interpreter">http://stackoverflow.com/questions/684171/how-to-re-import-an-updated-package-while-in-python-interpreter</a></div>
<div><br></div><div>Regards, </div><div>Joćo Mesquita<br><br>
<br><br><div class="gmail_quote">On Mon, Aug 13, 2012 at 4:42 PM, Amil <span dir="ltr"><<a href="mailto:amilkhanzada@gmail.com" target="_blank">amilkhanzada@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">*last bump*<div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 12:17 PM, Amil <span dir="ltr"><<a href="mailto:amilkhanzada@gmail.com" target="_blank">amilkhanzada@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Any ideas? If it is not possible, please let me know.<div><br></div><div>Thanks,</div><div>Amil</div><div>
<a href="http://www.amilkhanzada.com/2012/06/gmail-keeping-mailing-list-topics-you.html" target="_blank">http://www.amilkhanzada.com/2012/06/gmail-keeping-mailing-list-topics-you.html</a><div><div><br>
<br><div class="gmail_quote">On Sun, Jul 15, 2012 at 8:57 PM, Amil <span dir="ltr"><<a href="mailto:amilkhanzada@gmail.com" target="_blank">amilkhanzada@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">So, I am writing some python scripts that are copied into the dist-packages directory of python.</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">However, I am also using python scripts in the FreeSWITCH scripts directory that refer to these python scripts in the dist-packages.</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">To re-copy the files, I need to run "sudo python setup_fs.py" each time I make a change.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">However, I also need to restart FreeSWITCH because I don't know of a way to reload the dist-packages used by mod_python.</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Any ideas?</div><br><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">PS: This is the project I am referring to: <<a href="https://github.com/kheimerl/libvbts" style="color:rgb(17,85,204)" target="_blank">https://github.com/kheimerl/libvbts</a>></div>
</div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>