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
envs: | |
dev: | |
FOO: "dev foo" | |
BAR: "dev bar" | |
prod: | |
FOO: "prod foo" | |
BAR: "prod bar" | |
local: | |
FOO: "my foo" | |
BAR: "my bar" |
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 | |
KEEP = ('en') | |
def remove_dirs(): | |
os.chdir('lang') | |
for dir_ in os.listdir(os.getcwd()): | |
if os.path.isdir(dir_): | |
if dir_ not in KEEP: |