common/i18n.py
changeset 3230 1d25e928c299
parent 3156 cd56d5c379cb
parent 3202 241ae91e9ab7
child 3293 69c0ba095536
--- a/common/i18n.py	Mon Sep 14 11:25:56 2009 +0200
+++ b/common/i18n.py	Tue Sep 15 15:01:41 2009 +0200
@@ -44,12 +44,9 @@
     """display the command, execute it and raise an Exception if returned
     status != 0
     """
+    from subprocess import call
     print cmd.replace(os.getcwd() + os.sep, '')
-    if sys.platform == 'win32':
-        from subprocess import call
-    else:
-        call = os.system
-    status = call(cmd)
+    status = call(cmd, shell=True)
     if status != 0:
         raise Exception('status = %s' % status)