From 2bc727c7a8bfa1b45f72fae36249bfff98610988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chavant?= Date: Wed, 1 Dec 2021 09:59:06 +0100 Subject: [PATCH] Fix call to collect.py This prevents the same flavour from always being picked by the scan function and resolves #3. --- get_profiles_local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_profiles_local.py b/get_profiles_local.py index ed4bc997..9456aba1 100755 --- a/get_profiles_local.py +++ b/get_profiles_local.py @@ -46,7 +46,7 @@ def find_subdirs(url, regex): os.mkdir(itype+"www/") os.system("touch "+itype+"www/config.js") - command = "./misc/collect.py --image-url '"+link+"{target}' "+sys.argv[2]+" "+itype+"www/" + command = "./misc/collect.py --image-url '{}{{target}}' {}{} {}www/".format(link, sys.argv[2], itype, itype) os.system(command) src_dir = [f.path for f in os.scandir(itype+"www/data/") if f.is_dir()][0]