On Wed, Nov 09, 2011 at 06:48:17PM +0100, Johannes Ring wrote: > On Wed, Nov 9, 2011 at 5:27 PM, Anders Logg <l...@simula.no> 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 _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp