mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
All tests pass on windows
This commit is contained in:
6 files changed
+19
-9
No files matched your search
@@ -18,7 +18,6 @@
|
||||
import os
|
||||
import hashlib
|
||||
|
||||
|
||||
from ..config import Config
|
||||
from . import force_unix_path
|
||||
|
||||
@@ -36,6 +35,7 @@ def scan_for_images(type):
|
||||
files = set()
|
||||
paths = []
|
||||
for directory in images_directories(type):
|
||||
directory = os.path.normpath(directory)
|
||||
for root, _, filenames in os.walk(directory):
|
||||
for file in filenames:
|
||||
path = os.path.join(root, file)
|
||||
@@ -46,7 +46,7 @@ def scan_for_images(type):
|
||||
or (file.endswith(".bin") and type == "iou") \
|
||||
or (not file.endswith(".bin") and not file.endswith(".image") and type == "qemu"):
|
||||
files.add(file)
|
||||
paths.append(path)
|
||||
paths.append(force_unix_path(path))
|
||||
return paths
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user