mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-25 01:38:08 +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")
|
ws_install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
|
||||||
vmrun_ws = os.path.join(ws_install_path, "vmrun.exe")
|
vmrun_ws = os.path.join(ws_install_path, "vmrun.exe")
|
||||||
winreg.CloseKey(hkey)
|
winreg.CloseKey(hkey)
|
||||||
if os.path.exists(vmrun_ws):
|
if os.path.exists(vmrun_ws):
|
||||||
vmrun_path = vmrun_ws
|
vmrun_path = vmrun_ws
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
@ -97,8 +97,8 @@ class VMware(BaseManager):
|
|||||||
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Wow6432Node\VMware, Inc.\VMware VIX")
|
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Wow6432Node\VMware, Inc.\VMware VIX")
|
||||||
ws_install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
|
ws_install_path, _ = winreg.QueryValueEx(hkey, "InstallPath")
|
||||||
vmrun_vix = os.path.join(ws_install_path, "vmrun.exe")
|
vmrun_vix = os.path.join(ws_install_path, "vmrun.exe")
|
||||||
if os.path.exists(vmrun_vix):
|
if os.path.exists(vmrun_vix):
|
||||||
vmrun_path = vmrun_vix
|
vmrun_path = vmrun_vix
|
||||||
elif sys.platform.startswith("darwin"):
|
elif sys.platform.startswith("darwin"):
|
||||||
vmrun_path = "/Applications/VMware Fusion.app/Contents/Library/vmrun"
|
vmrun_path = "/Applications/VMware Fusion.app/Contents/Library/vmrun"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user