← Back to team overview

yade-users team mailing list archive

Re: [Question #407624]: about the PyRunner

 

Question #407624 on Yade changed:
https://answers.launchpad.net/yade/+question/407624

    Status: Open => Answered

Jan Stránský proposed the following answer:
As you would type the commands into the console, you can write them to a
python script (a text file with .py extension). Then you do in terminal the
following commands. Have a look at [1] in case Linux is also new to you.

cd path/to/the/script
yade scriptName.py

"path/to/the/script" is a directory where it is saved
"yade" might be "yade-trunk", "yadedaily" or different according to your
yade instalation
"scriptName.py" is the actual name of the script (of course may have
different name)

Can it be affect the result?


Evidently it affects the results very much :-) The script also reduces the
need of globals() ans locals() calls..

cheers
Jan

[1] https://yade-dem.org/doc/tutorial-hands-on.html

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.