1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-19 06:48:10 +00:00

Send an error when vmware executable cannot be found on Linux. Fixes #288.

This commit is contained in:
grossmj 2015-08-06 23:05:10 -06:00
parent 5121753232
commit 05ab18f295

View File

@ -172,6 +172,9 @@ class VMware(BaseManager):
else:
vmware_path = shutil.which("vmware")
if vmware_path is None:
raise VMwareError("VMware is not installed (vmware executable could not be found in $PATH)")
try:
output = yield from subprocess_check_output(vmware_path, "-v")
match = re.search("VMware Workstation ([0-9]+)\.", output)