Skip to content

Commit c227fe5

Browse files
committed
Fix po file creation
1 parent c0edc71 commit c227fe5

File tree

1 file changed

+1
-1
lines changed
  • django_babel/management/commands

1 file changed

+1
-1
lines changed

django_babel/management/commands/babel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def handle_makemessages(self, **options):
8383
'%s.po' % domain)
8484

8585
if not os.path.isdir(os.path.dirname(pofile)):
86-
os.makedirs(basedir)
86+
os.makedirs(os.path.dirname(pofile))
8787

8888
if not os.path.exists(pofile):
8989
with open(pofile, 'wb') as fobj:

0 commit comments

Comments
 (0)