mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Merge branch 'master' into 2.0
This commit is contained in:
14 files changed
+314
-30
No files matched your search
@@ -39,6 +39,7 @@ from gns3server.compute.base_manager import BaseManager
|
||||
from gns3server.compute.vmware.vmware_vm import VMwareVM
|
||||
from gns3server.compute.vmware.vmware_error import VMwareError
|
||||
|
||||
|
||||
class VMware(BaseManager):
|
||||
|
||||
_NODE_CLASS = VMwareVM
|
||||
@@ -103,7 +104,10 @@ class VMware(BaseManager):
|
||||
elif sys.platform.startswith("darwin"):
|
||||
vmrun_path = "/Applications/VMware Fusion.app/Contents/Library/vmrun"
|
||||
else:
|
||||
vmrun_path = shutil.which("vmrun")
|
||||
vmrun_path = "vmrun"
|
||||
|
||||
if not os.path.abspath(vmrun_path):
|
||||
vmrun_path = shutil.which(vmrun_path)
|
||||
|
||||
if not vmrun_path:
|
||||
raise VMwareError("Could not find VMware vmrun, please make sure it is installed")
|
||||
|
||||
Reference in new issue
Block a user