mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Updates vmnet script to support Windows.
This commit is contained in:
1 parent
1e722254f7
commit
8e29ad4493
2 files changed
+97
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user