Have the server look in the right place for relative image paths.

This commit is contained in:
grossmj committed 2015-03-09 21:57:21 -06:00
1 parent ad5548f70b
commit 5910b4b0be
3 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ class IOUVM(BaseVM):
if not os.path.isabs(path):
server_config = Config.instance().get_section_config("Server")
path = os.path.join(os.path.expanduser(server_config.get("images_path", "~/GNS3/images")), 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):