This commit is contained in:
grossmj 2014-04-27 11:55:02 -06:00
parent 85336e0fca
commit 32436b0051

View File

@ -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: