mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
1 parent
b2d8a8d810
commit
4cd5ec5613
3 files changed
+25
-1
No files matched your search
@@ -73,6 +73,8 @@ class VirtualBox(BaseManager):
|
||||
raise VirtualBoxError("VBoxManage {} is not accessible".format(vboxmanage_path))
|
||||
if not os.access(vboxmanage_path, os.X_OK):
|
||||
raise VirtualBoxError("VBoxManage is not executable")
|
||||
if os.path.basename(vboxmanage_path) not in ["VBoxManage", "VBoxManage.exe", "vboxmanage"]:
|
||||
raise VirtualBoxError("Invalid VBoxManage executable name {}".format(os.path.basename(vboxmanage_path)))
|
||||
|
||||
self._vboxmanage_path = vboxmanage_path
|
||||
return vboxmanage_path
|
||||
|
||||
Reference in new issue
Block a user