From f038735595516b823277994c70617a4418936c93 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 19 Oct 2016 17:42:08 +0200 Subject: [PATCH] Fix an issue with finding vmrun and vboxmanage Ref #1575 --- gns3server/modules/virtualbox/__init__.py | 2 +- gns3server/modules/vmware/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/virtualbox/__init__.py b/gns3server/modules/virtualbox/__init__.py index 45085b07..94c0ebd2 100644 --- a/gns3server/modules/virtualbox/__init__.py +++ b/gns3server/modules/virtualbox/__init__.py @@ -68,7 +68,7 @@ class VirtualBox(BaseManager): else: vboxmanage_path = "vboxmanage" - if not os.path.abspath(vboxmanage_path): + if not os.path.isabs(vboxmanage_path): vboxmanage_path = shutil.which(vboxmanage_path) if not vboxmanage_path: diff --git a/gns3server/modules/vmware/__init__.py b/gns3server/modules/vmware/__init__.py index a9cd6108..7c9972e8 100644 --- a/gns3server/modules/vmware/__init__.py +++ b/gns3server/modules/vmware/__init__.py @@ -107,7 +107,7 @@ class VMware(BaseManager): else: vmrun_path = "vmrun" - if not os.path.abspath(vmrun_path): + if not os.path.isabs(vmrun_path): vmrun_path = shutil.which(vmrun_path) if not vmrun_path: