mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Fixes indentation mistakes.
This commit is contained in:
parent
abd9c1dc48
commit
8cc46f66c6
@ -86,8 +86,8 @@ class VMware(BaseManager):
|
||||
ws_install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
|
||||
vmrun_ws = os.path.join(ws_install_path, "vmrun.exe")
|
||||
winreg.CloseKey(hkey)
|
||||
if os.path.exists(vmrun_ws):
|
||||
vmrun_path = vmrun_ws
|
||||
if os.path.exists(vmrun_ws):
|
||||
vmrun_path = vmrun_ws
|
||||
except OSError:
|
||||
pass
|
||||
else:
|
||||
@ -97,8 +97,8 @@ class VMware(BaseManager):
|
||||
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Wow6432Node\VMware, Inc.\VMware VIX")
|
||||
ws_install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
|
||||
vmrun_vix = os.path.join(ws_install_path, "vmrun.exe")
|
||||
if os.path.exists(vmrun_vix):
|
||||
vmrun_path = vmrun_vix
|
||||
if os.path.exists(vmrun_vix):
|
||||
vmrun_path = vmrun_vix
|
||||
elif sys.platform.startswith("darwin"):
|
||||
vmrun_path = "/Applications/VMware Fusion.app/Contents/Library/vmrun"
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user