Pythonscript using input()
Hi all,
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
Salome.
Right now I'm working with Salome on Windows.
Thanks in advance
Nigirim
Hello Nigirim,
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.
Regards,
Vadim.
Hello Nigirim,
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.
Best regards,
William
