Skip to content

Commit 30b458b

Browse files
committed
Make the target relative.
This fixes a nasty problem that makes the file comments absolute and get updated whenever someone new was updating the files.
1 parent 9c00068 commit 30b458b

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

django_babel/management/commands/babel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ def handle_makemessages(self, **options):
6666
if mapping_file is not None:
6767
cmd.extend(['-F', mapping_file])
6868

69-
cmd.append(os.path.dirname(path))
69+
cmd.append(os.path.dirname(os.path.relpath(path)))
7070

7171
call(cmd)
7272

7373
for locale in locales:
7474
cmd = ['pybabel', 'update', '-D', domain,
7575
'-i', potfile,
76-
'-d', path,
76+
'-d', os.path.relpath(path),
7777
'-l', locale]
7878
call(cmd)
7979

0 commit comments

Comments
 (0)