Fixes path to vmnet-cli on Mac OS X.

This commit is contained in:
grossmj 2015-09-05 11:30:26 -06:00
parent a70775a238
commit 476e033a78

View File

@ -75,9 +75,9 @@ def write_networking_file(version, pairs):
if sys.platform.startswith("darwin"):
if not os.path.exists("/Applications/VMware Fusion.app/Contents/Library/vmnet-cli"):
raise SystemExit("VMware Fusion is not installed in Applications")
os.system("/Applications/VMware Fusion.app/Contents/Library/vmnet-cli --configure")
os.system("/Applications/VMware Fusion.app/Contents/Library/vmnet-cli --stop")
os.system("/Applications/VMware Fusion.app/Contents/Library/vmnet-cli --start")
os.system(r"/Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure")
os.system(r"/Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop")
os.system(r"/Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start")
else:
os.system("vmware-networks --stop")
os.system("vmware-networks --start")