Le 08/11/2010 18:29, Václav Šmilauer a écrit :

There are 2 solutions (or 3):

1. Look at http://docs.python.org/library/functions.html#execfile and
pass globals as the second arg, like this:

   execfile('script.py',globals())

For example, I just tried this one, it works. Thanks,

Jerome

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

Reply via email to