Consider the possibility that "nvim" is not in $PATH

pull/51/head
Marco Hinz 7 years ago
parent 6e1fe04456
commit 2111ea9d0a
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

@ -74,7 +74,11 @@ class Neovim():
time.sleep(0.2)
else:
os.environ['NVIM_LISTEN_ADDRESS'] = self.address
os.execvpe('nvim', ['nvim'], os.environ)
try:
os.execvpe('nvim', ['nvim'], os.environ)
except FileNotFoundError:
print("[!] Can't start new nvim instance: 'nvim' is not in $PATH.")
sys.exit(1)
return False

Loading…
Cancel
Save