From f6b122cdfac31efa1dfd2c8fd508597552bd0ff7 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Tue, 17 Mar 2015 19:28:43 -0600 Subject: [PATCH] Look in legacy IOU images dir when looking for relative IOU image path. --- gns3server/modules/iou/iou_vm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index f195c2ed..37d955ad 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -139,7 +139,9 @@ class IOUVM(BaseVM): if not os.path.isabs(path): server_config = self.manager.config.get_section_config("Server") - path = os.path.join(os.path.expanduser(server_config.get("images_path", "~/GNS3/images")), "IOU", path) + path = os.path.join(os.path.expanduser(server_config.get("images_path", "~/GNS3/images")), path) + if not os.path.exists(path): + path = os.path.join(os.path.expanduser(server_config.get("images_path", "~/GNS3/images")), "IOU", path) self._path = path if not os.path.isfile(self._path) or not os.path.exists(self._path):