mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 23:08:18 +00:00
Makes absolute path checks work on Windows.
This commit is contained in:
@ -421,8 +421,7 @@ class Router(BaseVM):
|
||||
:param image: path to IOS image file
|
||||
"""
|
||||
|
||||
if not os.path.dirname(image):
|
||||
# this must be a relative path
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user