[Zope-dev] docs.zope.org automation
Jens Vagelpohl
jens at dataflake.org
Wed Aug 4 05:39:19 EDT 2010
-----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-----
More information about the Zope-Dev
mailing list