Open (txt) editor and get its content

zljubisic at zljubisic at
Thu Apr 19 03:39:40 EDT 2018


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.


More information about the Python-list mailing list