-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/4/10 11:33 , Chris Withers wrote:
> Jens Vagelpohl wrote:
>>> I've just been doing some build and release tools for a customer that
>>> involve this sort of stuff, I resorted to:
>> <snip lots of code>
>>
>> Yikes. Maybe the subshell isn't so bad after all :-P
> 
> Yeah ;-) Although getting the right python path set up can be a pain...

In my particular case that's not a problem. I simply re-use sys.path
from the running interpreter, which is good enough. Something like this:

cmd = 'PYTHONPATH="%s" %s setup.py --long-description' % (
   sys.executable, ':'.join(sys.path))
status, output = commands.getstatusoutput(cmd)

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkxZNUcACgkQRAx5nvEhZLKNtwCgqgZcNkJWZlS+qMkn8Ra9brnZ
gcgAnjnA/KaraIL93Ue+CvPlVzxwYs10
=ykyG
-----END PGP SIGNATURE-----
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to