mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Makes absolute path checks work on Windows.
This commit is contained in:
1 parent
be1e0fa1f2
commit
0d379f428e
3 files changed
+4
-5
No files matched your search
@@ -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