From 8cb5cedb5d58e4c734af70b73a32429b237a332d Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 17 May 2016 09:28:05 +0200 Subject: [PATCH] Do not raise error if vmrun.exe is named vmrun.EXE --- gns3server/modules/vmware/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/vmware/__init__.py b/gns3server/modules/vmware/__init__.py index e4b1a730..802911d4 100644 --- a/gns3server/modules/vmware/__init__.py +++ b/gns3server/modules/vmware/__init__.py @@ -113,7 +113,7 @@ class VMware(BaseManager): raise VMwareError("vmrun {} is not accessible".format(vmrun_path)) if not os.access(vmrun_path, os.X_OK): raise VMwareError("vmrun is not executable") - if os.path.basename(vmrun_path) not in ["vmrun", "vmrun.exe"]: + if os.path.basename(vmrun_path).lower() not in ["vmrun", "vmrun.exe"]: raise VMwareError("Invalid vmrun executable name {}".format(os.path.basename(vmrun_path))) self._vmrun_path = vmrun_path