1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 12:59:06 +00:00

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,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):