mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +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
@@ -131,7 +131,7 @@ class IOUVM(BaseVM):
|
||||
:params path: Path to the binary
|
||||
"""
|
||||
|
||||
if path[0] != "/":
|
||||
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user