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

Merge branch 'windows-compat' into 'master'

Windows compat

See merge request !7
parents cdb1114e 48a0f121
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!7Windows compat
__version__ = "0.2.1" __version__ = "0.3.0"
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,7 @@ import subprocess ...@@ -2,6 +2,7 @@ import subprocess
import shlex import shlex
from pathlib import Path from pathlib import Path
import glob import glob
import shutil
def main(): def main():
...@@ -14,7 +15,8 @@ def main(): ...@@ -14,7 +15,8 @@ def main():
mapping_dir = HERE / "g2p/mappings/langs/" mapping_dir = HERE / "g2p/mappings/langs/"
mappings = glob.glob(f"{str(mapping_dir):s}/*") mappings = glob.glob(f"{str(mapping_dir):s}/*")
for map in mappings: for map in mappings:
subprocess.check_call(shlex.split(f'cp -r {map:s} {str(g2p_base):s}/mappings/langs/')) #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), dirs_exist_ok=True)
subprocess.check_call(shlex.split(f'g2p update')) subprocess.check_call(shlex.split(f'g2p update'))
ipa_langs = ["fra"] ipa_langs = ["fra"]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter