osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Open (txt) editor and get its content


Hi,

I have a script that should accept sql query as a parameter and change it in a way. For now I have a file in which I have put sql query and than python script opens it and do everything else.

Is it possible to run python script that will open editor and let me paste sql query in the editor, and than after closing editor, get editor's content in python script?

Is there any other option for getting interactive multi line input from user.

Regards.