Commits

adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed f2411f0

Fixed #2604 -- Got compile-messages.py working on win32. Thanks for the patch, Jarosław Zabiełło

  • Participants
  • Parent commits e2d0de6

Comments (0)

Files changed (1)

File django/bin/compile-messages.py

                 # 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__":