From 32436b0051cd0e1e37f09e2c30b7114fc1341f8e Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 27 Apr 2014 11:55:02 -0600 Subject: [PATCH] Fixes #6. --- gns3server/modules/iou/iou_device.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/modules/iou/iou_device.py b/gns3server/modules/iou/iou_device.py index 517be45d..0aabe349 100644 --- a/gns3server/modules/iou/iou_device.py +++ b/gns3server/modules/iou/iou_device.py @@ -414,11 +414,11 @@ class IOUDevice(object): if not self.is_running(): - if not os.path.isfile(iou_path): - raise IOUError("IOU image '{}' is not accessible".format(iou_path)) + if not os.path.isfile(self._path): + raise IOUError("IOU image '{}' is not accessible".format(self._path)) try: - with open(iou_path, "rb") as f: + with open(self._path, "rb") as f: # read the first 7 bytes of the file. elf_header_start = f.read(7) except OSError as e: