Split EDITOR environment variable to handle flags in prefix.
This commit is contained in:
parent
b428ed3a7d
commit
664f3bbb90
@ -131,7 +131,7 @@ def prompt_interactive(changes, project, package):
|
|||||||
editor = os.getenv('EDITOR')
|
editor = os.getenv('EDITOR')
|
||||||
if not editor:
|
if not editor:
|
||||||
editor = 'xdg-open'
|
editor = 'xdg-open'
|
||||||
subprocess.call([editor, temp.name])
|
subprocess.call(editor.split(' ') + [temp.name])
|
||||||
|
|
||||||
changes_after = yaml.safe_load(open(temp.name).read())
|
changes_after = yaml.safe_load(open(temp.name).read())
|
||||||
if changes_after is None:
|
if changes_after is None:
|
||||||
|
@ -599,7 +599,7 @@ def do_staging(self, subcmd, opts, *args):
|
|||||||
editor = os.getenv('EDITOR')
|
editor = os.getenv('EDITOR')
|
||||||
if not editor:
|
if not editor:
|
||||||
editor = 'xdg-open'
|
editor = 'xdg-open'
|
||||||
return_code = subprocess.call([editor, temp.name])
|
return_code = subprocess.call(editor.split(' ') + [temp.name])
|
||||||
|
|
||||||
proposal = yaml.safe_load(open(temp.name).read())
|
proposal = yaml.safe_load(open(temp.name).read())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user