← Back to team overview

yade-users team mailing list archive

Re: Launching scripts inside Yade ?

 



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



References