Skip to content

Commit 9ac9b13

Browse files
fix windows path for l10n script
1 parent 8b67205 commit 9ac9b13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

l10n_CM/run_l10n.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,14 @@ def get_region_tests(test_region: str) -> list[str]:
134134
Returns:
135135
list[str]: A list of test file paths for the given region.
136136
"""
137-
path_to_region = current_dir + "/region/"
138-
with open(path_to_region + test_region + ".json", "r") as fp:
137+
path_to_region = os.path.join(current_dir, "region")
138+
with open(os.path.join(path_to_region, test_region) + ".json", "r") as fp:
139139
region_data = load(fp)
140140
raw_tests = region_data.get("tests", [])
141141
return (
142-
list(map(lambda test: current_dir + "/Unified/" + test, raw_tests))
142+
list(
143+
map(lambda test: os.path.join(current_dir, "Unified", test), raw_tests)
144+
)
143145
if len(raw_tests) > 0
144146
else raw_tests
145147
)

0 commit comments

Comments
 (0)