Personal tools
You are here: Home Forum Use Pythonscript using input()

Pythonscript using input()

Up to Use

Pythonscript using input()

Posted by Nigirim at November 23. 2012

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

Re: Pythonscript using input()

Posted by Vadim SANDLER at November 23. 2012

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.

Re: Pythonscript using input()

Posted by William Tougeron at November 23. 2012

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

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

Nigirim

Powered by Ploneboard
Document Actions