Created
May 8, 2014 03:16
-
-
Save the5fire/bbad767a1b8f5ba45ee0 to your computer and use it in GitHub Desktop.
cp lang dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
l = "ar, bg, bn, br, bs, ca, ckb, cs, csb, cy, da, de, el, en, en_AU, en_CA, en_GB, eo, es, et, eu, fa, fi, fil, fo, fr, fy, ga, gl, gu, he, hi, hr, hu, id, is, it, ja, ka, kk, ko, ku, lt, lv, mk, ml, mr, ms, nb, nds, ne, nl, nn, oc, pa, pl, pt, pt_BR, ro, ru, si, sk, sl, sq, sr, sv, ta, te, th, tl, tr, uk, ur, vi, zh_CN, zh_HK, zh_TW, zu" | |
for la in l.split(', '): | |
la = la.strip() | |
if not os.path.exists(la): | |
shutil.copytree('gl', la) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment