1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

VMnet manager on Linux: check that VMware has been installed.

This commit is contained in:
Jeremy 2015-07-27 17:10:20 -06:00
parent f761fb77f8
commit 1ebc287b5f

View File

@ -106,6 +106,8 @@ def main():
raise SystemExit(e) raise SystemExit(e)
vmnet_range = args.range if args.range is not None else DEFAULT_RANGE 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): if not os.access(VMWARE_NETWORKING_FILE, os.W_OK):
raise SystemExit("You must run this script as root") raise SystemExit("You must run this script as root")