Look in legacy IOU images dir when looking for relative IOU image path.

This commit is contained in:
Jeremy 2015-03-17 19:28:43 -06:00
parent 44c8396997
commit f6b122cdfa

View File

@ -139,6 +139,8 @@ 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")), 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