Open (txt) editor and get its content

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Apr 19 07:41:19 EDT 2018


On Thu, 19 Apr 2018 00:39:40 -0700, zljubisic wrote:

> 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?

Try this recipe: it will work for many, but not all editors.

https://code.activestate.com/recipes/578926

Bug reports, improvements and comments welcome.



-- 
Steve




More information about the Python-list mailing list