Merge pull request #34257 from Zeit-Labs/pythonize_pull_translations

chore: pull_translations: use less Makefile commands and move it to Python | FC-0012
This commit is contained in:
Feanil Patel
2024-02-20 12:05:18 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ class BaseAtlasPullCommand(BaseCommand):
Ensure the pull directory is empty before running atlas pull.
"""
plugin_translations_root = directory
os.makedirs(plugin_translations_root, exist_ok=True)
if os.listdir(plugin_translations_root):
raise CommandError(f'"{plugin_translations_root}" should be empty before running atlas pull.')