mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Return relative path for dynamips images
Fix https://github.com/GNS3/gns3-gui/issues/775
This commit is contained in:
1 parent
7ee12edb5c
commit
6fbc84c0dc
2 files changed
+2
-1
No files matched your search
@@ -733,5 +733,6 @@ class Dynamips(BaseManager):
|
||||
continue
|
||||
# valid IOS images must start with the ELF magic number, be 32-bit, big endian and have an ELF version of 1
|
||||
if elf_header_start == b'\x7fELF\x01\x02\x01':
|
||||
path = os.path.relpath(path, image_dir)
|
||||
images.append({"filename": filename, "path": path})
|
||||
return images
|
||||
Reference in new issue
Block a user