mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
be editor neutral
This commit is contained in:
parent
788e21fd03
commit
b5c688c94d
@ -737,7 +737,7 @@ class GetTranslations(Translations): # {{{
|
||||
subprocess.check_call(pofilter)
|
||||
errfiles = glob.glob(errors+os.sep+'*.po')
|
||||
if errfiles:
|
||||
subprocess.check_call(['vim', '-f', '-p', '--']+errfiles)
|
||||
subprocess.check_call([os.environ.get('EDITOR', 'vim'), '-f', '-p', '--']+errfiles)
|
||||
for f in errfiles:
|
||||
with open(f, 'r+b') as f:
|
||||
raw = f.read()
|
||||
|
Loading…
x
Reference in New Issue
Block a user