Sorry, the question title should read "How to *pass* a web2py environment
along . . ." I can't seem to correct the title!
On Monday, December 17, 2012 11:11:47 AM UTC-5, Ian W. Scott wrote:
>
> I'm running a file like this:
>
> python ~/web/web2py/web2py.py -S paideia -M -R
> applications/paideia/bin/runtest.py
>
> Then I launch a subprocess from runtest.py like this:
>
> proc = subprocess.Popen("py.test {}".format(test_dir),
> stdout=subprocess.PIPE,
> stderr=subprocess.PIPE,
> shell=True)
> stdout_val, stderr_val = proc.communicate()
>
> is there any way to expose the web2py environment from runtest.py to the
> new subprocess?
>
>
--