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
@@ -423,7 +423,7 @@ class Router(BaseVM):
if not os.path.isabs(image):
server_config = Config.instance().get_section_config("Server")
image = os.path.join(os.path.expanduser(server_config.get("images_path", "~/GNS3/images")), image)
image = os.path.join(os.path.expanduser(server_config.get("images_path", "~/GNS3/images")), "IOS", image)
if not os.path.isfile(image):
raise DynamipsError("IOS image '{}' is not accessible".format(image))