diff --git a/gns3server/modules/vmware/__init__.py b/gns3server/modules/vmware/__init__.py index 843af949..782e15f9 100644 --- a/gns3server/modules/vmware/__init__.py +++ b/gns3server/modules/vmware/__init__.py @@ -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)