mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-03 00:25:17 +03:00
feat(virtualbox): add fallback for VBoxManage executable detection
Add an additional fallback check for the VBoxManage executable using the capitalized "VBoxManage" command name. This improves compatibility on systems where the executable may be case-sensitive or installed with a different naming convention, ensuring the VirtualBox manager can locate the necessary binary when the lowercase "vboxmanage" is not found.
This commit is contained in:
parent
4519130a8c
commit
c55fd9e066
@ -68,6 +68,8 @@ class VirtualBox(BaseManager):
|
||||
vboxmanage_path = vboxmanage_path_osx
|
||||
if not vboxmanage_path:
|
||||
vboxmanage_path = shutil.which("vboxmanage")
|
||||
if not vboxmanage_path:
|
||||
vboxmanage_path = shutil.which("VBoxManage")
|
||||
|
||||
if vboxmanage_path and not os.path.exists(vboxmanage_path):
|
||||
log.error(f"VBoxManage path '{vboxmanage_path}' doesn't exist")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user