mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Fix path splitting in translation updater script
This commit is contained in:
parent
6e3246c5fd
commit
e8a8525bcd
@ -425,7 +425,7 @@ def generate_template(folder, mod_name):
|
|||||||
sources = sorted(list(sources), key=str.lower)
|
sources = sorted(list(sources), key=str.lower)
|
||||||
newSources = []
|
newSources = []
|
||||||
for i in sources:
|
for i in sources:
|
||||||
i = "/".join(os.path.split(i)).lstrip("/")
|
i = i.replace("\\", "/")
|
||||||
newSources.append(f"{symbol_source_prefix} {i} {symbol_source_suffix}")
|
newSources.append(f"{symbol_source_prefix} {i} {symbol_source_suffix}")
|
||||||
dOut[d] = newSources
|
dOut[d] = newSources
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user