mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Have the server look in the right place for relative image paths.
This commit is contained in:
1 parent
ad5548f70b
commit
5910b4b0be
3 files changed
+12
-4
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user