# HG changeset patch # User Aurelien Campeas # Date 1252515995 -7200 # Node ID cd56d5c379cb9acd480006e9fa598ce1385a8a40 # Parent 14e30e2520d7f01f7f7c60e48478f9eba1d0cd95 very dubious but observed : os.system works on linux, subprocess.call on windows, no other way around ? diff -r 14e30e2520d7 -r cd56d5c379cb common/i18n.py --- 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)