Makes absolute path checks work on Windows.

This commit is contained in:
grossmj
2015-03-07 18:16:46 -07:00
parent be1e0fa1f2
commit 0d379f428e
3 changed files with 4 additions and 5 deletions

View File

@ -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)