Updates vmnet script to support Windows.

This commit is contained in:
grossmj committed 2015-09-09 02:38:11 -06:00
1 parent 1e722254f7
commit 8e29ad4493
2 files changed
+97 -23

No files matched your search

+2 -2
View File
@@ -73,8 +73,8 @@ class VMware(BaseManager):
try:
# default path not used, let's look in the registry
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, regkey)
ws_install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
vmrun_path = os.path.join(ws_install_path, "vmrun.exe")
install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
vmrun_path = os.path.join(install_path, "vmrun.exe")
winreg.CloseKey(hkey)
if os.path.exists(vmrun_path):
return vmrun_path