mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fixes #6.
This commit is contained in:
parent
85336e0fca
commit
32436b0051
@ -414,11 +414,11 @@ class IOUDevice(object):
|
|||||||
|
|
||||||
if not self.is_running():
|
if not self.is_running():
|
||||||
|
|
||||||
if not os.path.isfile(iou_path):
|
if not os.path.isfile(self._path):
|
||||||
raise IOUError("IOU image '{}' is not accessible".format(iou_path))
|
raise IOUError("IOU image '{}' is not accessible".format(self._path))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(iou_path, "rb") as f:
|
with open(self._path, "rb") as f:
|
||||||
# read the first 7 bytes of the file.
|
# read the first 7 bytes of the file.
|
||||||
elf_header_start = f.read(7)
|
elf_header_start = f.read(7)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user