From 1ebc287b5f9eeddc5605bd18f478b5482c420a16 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 27 Jul 2015 17:10:20 -0600 Subject: [PATCH] VMnet manager on Linux: check that VMware has been installed. --- utils/vmnet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/vmnet.py b/utils/vmnet.py index 3fbc8357..dea393a0 100644 --- a/utils/vmnet.py +++ b/utils/vmnet.py @@ -106,6 +106,8 @@ def main(): raise SystemExit(e) vmnet_range = args.range if args.range is not None else DEFAULT_RANGE + if not os.path.exists(VMWARE_NETWORKING_FILE): + raise SystemExit("VMware Player or Workstation is not installed") if not os.access(VMWARE_NETWORKING_FILE, os.W_OK): raise SystemExit("You must run this script as root")