Skip to content
Extraits de code Groupes Projets
Valider e0b41969 rédigé par Sting's avatar Sting
Parcourir les fichiers

Overwrite lang mapping without error if already exists

parent 82764831
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!7Windows compat
......@@ -16,7 +16,7 @@ def main():
mappings = glob.glob(f"{str(mapping_dir):s}/*")
for map in mappings:
#subprocess.check_call(shlex.split(f'cp -r {map:s} {str(g2p_base / "mappings/langs/"):s}'), shell=True)
shutil.copytree(map, str(g2p_base / "mappings/langs/" / Path(map).stem))
shutil.copytree(map, str(g2p_base / "mappings/langs/" / Path(map).stem), dirs_exist_ok=True)
subprocess.check_call(shlex.split(f'g2p update'))
ipa_langs = ["fra"]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter