← Back to team overview

dolfin team mailing list archive

Re: runpy.run_path missing on buildbot

 

On Wed, Nov 09, 2011 at 06:48:17PM +0100, Johannes Ring wrote:
> On Wed, Nov 9, 2011 at 5:27 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> > The thing that didn't work (or I did some other mistake) was this:
> >
> > In test1.py:
> >
> >    import sys
> >    sys.argv = ["foo", "1", "2"]
> >    execfile("test2.py")
> >
> > In test2.py:
> >
> >    import sys
> >    print sys.argv
>
> Yes, that works fine here.

ok, then something else might have been wrong. Anyway, it seems to
work now.

--
Anders


References