Permalink
Browse files

Fixed #2604 -- Got compile-messages.py working on win32. Thanks for t…

…he patch, Jarosław Zabiełło

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e7424f0 commit a547ef0d6200a85fea4ad40cdf1a38e702daa920 @adrianholovaty adrianholovaty committed Aug 28, 2006
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/bin/compile-messages.py
@@ -26,7 +26,10 @@ def compile_messages():
# See http://cyberelk.net/tim/articles/cmdline/ar01s02.html
os.environ['djangocompilemo'] = pf + '.mo'
os.environ['djangocompilepo'] = pf + '.po'
- cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
+ if sys.platform == 'win32': # Different shell-variable syntax
+ cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"'
+ else:
+ cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
os.system(cmd)
if __name__ == "__main__":

0 comments on commit a547ef0

Please sign in to comment.