X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=melanie;h=21e0cc7c13decaea6a1585568f56b77f03423017;hb=529b672cff736e8f81aa287e268f951329bf61ce;hp=1623b1d6ae5f1a0197c06d8764834586be08cc44;hpb=f09beb72f6f0bbd9372dbe18509f9aa8efe61d30;p=dak.git diff --git a/melanie b/melanie index 1623b1d6..21e0cc7c 100755 --- a/melanie +++ b/melanie @@ -2,7 +2,7 @@ # General purpose archive tool for ftpmaster # Copyright (C) 2000 James Troup -# $Id: melanie,v 1.5 2001-02-04 04:28:16 troup Exp $ +# $Id: melanie,v 1.6 2001-02-25 02:41:44 mjb Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -214,7 +214,8 @@ def main (): temp_filename = tempfile.mktemp(); fd = os.open(temp_filename, os.O_RDWR|os.O_CREAT|os.O_EXCL, 0700); os.close(fd); - result = os.system("vi %s" % (temp_filename)) + editor = os.environ.get("EDITOR","vi") + result = os.system("%s %s" % (editor, temp_filename)) if result != 0: sys.stderr.write ("vi invocation failed for `%s'!" % (temp_filename)) sys.exit(result)