Skip to content

Commit 2880b06

Browse files
committed
Fix listing_status script
1 parent 13af5eb commit 2880b06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/listing_status.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import argparse
77
from enum import IntEnum
88
from os.path import join as pjoin
9-
from os.path import dirname, normpath, relpath
9+
from os.path import dirname, normpath, relpath, splitext
1010
from os import walk, listdir, sep
1111

1212
ROOT_DIR = dirname(dirname(__file__))
@@ -43,7 +43,7 @@ def __init__(self, path, filename):
4343
normalized_path = relpath(normpath(path), DIRECTORY)
4444
split_path = normalized_path.split(sep)
4545
self.path_components = split_path[2:]
46-
self.internal_path = pjoin(*self.path_components, filename)
46+
self.internal_path = pjoin(*self.path_components, splitext(filename)[0])
4747

4848
def __eq__(self, o):
4949
"""
@@ -98,7 +98,6 @@ def get_file_list() -> dict:
9898
LVAPath(d, item)
9999
for d, _, fn in walk(pjoin(DIRECTORY, language, variant))
100100
for item in fn
101-
if item.endswith("txt")
102101
}
103102
return files
104103

0 commit comments

Comments
 (0)