<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 9:17 AM, Jesus Cea <span dir="ltr"><<a href="mailto:jcea@jcea.es" target="_blank">jcea@jcea.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div class="im">On 04/10/12 14:34, Benjamin Peterson wrote:<br>
> 2012/10/4 Jesus Cea <<a href="mailto:jcea@jcea.es">jcea@jcea.es</a>>:<br>
>> Any suggestion about how to solve this?<br>
><br>
> Easy solutions include somehow removing the dependence on<br>
> subprocess or moving the import of subprocess into the function<br>
> that uses it.<br>
<br>
</div>Moving the import into the function that needs it solves the issue.<br>
<br>
See <<a href="http://hg.python.org/cpython/rev/d6d908dc11f2" target="_blank">http://hg.python.org/cpython/rev/d6d908dc11f2</a>>.<br>
<br>
Thanks for the suggestion, Benjamin.</blockquote><div><br></div><div>This used to be a no-no, though, because if someone called that function in a thread during an import it would deadlock. Now Antoine reworked the locks so I don't know if this is still true or not.</div>

<div><br></div><div>-Brett</div></div>