On Wed, Nov 9, 2011 at 5:27 PM, Anders Logg <[email protected]> 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.

Johannes

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to