buildtest.tools.editor

Module Contents

Functions

set_editor([editor])

Set the editor used for editing files. The editor can be set based on environment EDITOR or passed as argument

buildtest.tools.editor.set_editor(editor=None)[source]

Set the editor used for editing files. The editor can be set based on environment EDITOR or passed as argument buildtest --editor. The editor must be one of the following: vi, vim, emacs, nano.

We check the path to editor before setting value to editor.

Parameters:

editor (str, optional) – Select choice of editor specified via buildtest --editor

Returns:

Return full path to editor

Return type:

str