Intelligently launching the default editor from inside a Python CLI program? -


The answer was not found in the heart of the problem. In the CLI-based Python program, I want the user to be able to edit a file and then come back to the program. Before returning, I want them to cancel their edits. Should feel like a committed-note-editing feature in Subversion.

What are the current best practices for this type of work?

You can try to view sources through Mercurial, which is written in Python.

, vi to default then they use ossystem with . When the editor is done, they read the file. If there is any real material in it, the operation continues, otherwise, it is canceled.

If you want to see how Mercurial does, details and


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -