Use full path, to be compatible both on localhost and on GitHub page.

This commit is contained in:
Benoit Marty
2024-03-08 10:00:31 +01:00
parent db7e719c57
commit aebef7a60d
3 changed files with 16 additions and 10 deletions

View File

@@ -106,8 +106,6 @@ def generateJavascriptFile():
languages = detectRecordedLanguages()
# First item is the list of languages, adding "en" at the beginning
data = [["en"] + languages]
# Second item is the path of the containing file
data.append(["./tests/uitests/src/test/snapshots/images"] + ["./screenshots/" + l for l in languages])
files = sorted(
os.listdir("tests/uitests/src/test/snapshots/images/"),
key=lambda file: file[file.find("_", 6):],