From 8c3aff2adc23596aa58e2d030d5c62ea344a6643 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 15 Jan 2006 19:23:27 +0000 Subject: fix traceback when EDITOR is not set in the env #118976 by Paul Varner svn path=/main/trunk/; revision=2564 --- bin/dispatch-conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 0940927fc..586b98759 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -204,6 +204,8 @@ class dispatch: show_new_diff = 1 continue elif c == 'e': + if not os.environ.has_key('EDITOR'): + os.environ['EDITOR']='nano' os.system(os.environ['EDITOR'] + ' ' + newconf) continue elif c == 'z': -- cgit v1.2.3-1-g7c22