<div class="gmail_extra"><div class="gmail_quote">On 7 November 2012 01:43, Carl Smith <span dir="ltr">&lt;<a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div id=":1kf">!adb forward tcp:9999 tcp:45001<br>
!export AP_PORT=9999</div></blockquote></div><br>My suspicion would be that !export doesn&#39;t propagate environment variables back to the Python process. I&#39;d try modifying os.environ directly.<br><br>Thomas<br></div>