Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit a547ef0d6200a85fea4ad40cdf1a38e702daa920 1 parent e7424f0
Adrian Holovaty authored August 28, 2006

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/bin/compile-messages.py
5  django/bin/compile-messages.py
@@ -26,7 +26,10 @@ def compile_messages():
26 26
                 # See http://cyberelk.net/tim/articles/cmdline/ar01s02.html
27 27
                 os.environ['djangocompilemo'] = pf + '.mo'
28 28
                 os.environ['djangocompilepo'] = pf + '.po'
29  
-                cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
  29
+                if sys.platform == 'win32': # Different shell-variable syntax
  30
+                    cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"'
  31
+                else:
  32
+                    cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
30 33
                 os.system(cmd)
31 34
 
32 35
 if __name__ == "__main__":

0 notes on commit a547ef0

Please sign in to comment.
Something went wrong with that request. Please try again.