option --init-missing of pybabel update
should also create the corresponding directory
#1139
Labels
pybabel update
should also create the corresponding directory
#1139
I use the option
--init-missing
ofpybabel update
to avoid redundantpybabel init
command. However, this option only creates the *.po file, and will fail if the target directory ([locale]/LC_MESSAGES
) does not exist yet:This behavior makes the option less useful. I suggest invoke
os.makedirs
inUpdateCatalog.finalize_options
, just like inInitCatalog.finalize_options
:babel/babel/messages/frontend.py
Lines 629 to 630 in f91754b
but with extra
exist_ok=True
argument, as the directory may already exist for the update command.Or it might be better to reuse the logic in
InitCatalog
.The text was updated successfully, but these errors were encountered: