default EDITOR

This commit is contained in:
Daniel STAN 2013-07-27 17:41:38 +02:00
parent 53324fa30e
commit 5bcd33019a
2 changed files with 1 additions and 5 deletions

View file

@ -285,7 +285,7 @@ def editor(texte, annotations=""):
for l in annotations.split('\n'):
f.write("# %s\n" % l.encode('utf-8'))
f.flush()
proc = subprocess.Popen(os.getenv('EDITOR') + ' ' + f.name, shell=True)
proc = subprocess.Popen([os.getenv('EDITOR', '/usr/bin/editor'), f.name])
os.waitpid(proc.pid, 0)
f.seek(0)
ntexte = f.read()