Pythonscript using input()
Pythonscript using input()Posted by Nigirim at November 23. 2012
I've got a short question regarding the use of input() in my pythonscripts.
I'm trying to write a script that automatically meshes my geometries which works just fine as long as i dont use
input() to set my meshing parameters. If I use input() Salome just stops working and I have to use the taskmanager to kill
Right now I'm working with Salome on Windows.
Thanks in advance
Re: Pythonscript using input()Posted by Vadim SANDLER at November 23. 2012
Unfortunately, interactive Python commands and functions like input() are not allowed in SALOME, at least if it is running in GUI mode. Though, it shoud work in batch mode.
Re: Pythonscript using input()Posted by William Tougeron at November 23. 2012
According to my experience, it is not possible to use the input() command in the Python console of Salome.
Instead, I define Python functions in my scripts, which can then be called in the Pyhton console using arguments.
Re: Pythonscript using input()Posted by Nigirim at November 23. 2012
Hello Vadim and William,
Thanks for the quick answers.
So I have to write another script