Makes absolute path checks work on Windows.

This commit is contained in:
grossmj committed 2015-03-07 18:16:46 -07:00
1 parent be1e0fa1f2
commit 0d379f428e
3 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -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)