common/i18n.py
branch3.5
changeset 3156 cd56d5c379cb
parent 3118 9e7a155bc4e5
child 3230 1d25e928c299
child 3316 c4c07aab1c39
--- a/common/i18n.py	Wed Sep 09 18:38:25 2009 +0200
+++ b/common/i18n.py	Wed Sep 09 19:06:35 2009 +0200
@@ -9,6 +9,7 @@
 
 import re
 import os
+import sys
 from os.path import join, basename, splitext, exists
 from glob import glob
 
@@ -44,7 +45,10 @@
     status != 0
     """
     print cmd.replace(os.getcwd() + os.sep, '')
-    from subprocess import call
+    if sys.platform == 'win32':
+        from subprocess import call
+    else:
+        call = os.system
     status = call(cmd)
     if status != 0:
         raise Exception('status = %s' % status)