common/i18n.py
branch3.5
changeset 3202 241ae91e9ab7
parent 3118 9e7a155bc4e5
child 3230 1d25e928c299
child 3275 5247789df541
equal deleted inserted replaced
3201:8af05e82510c 3202:241ae91e9ab7
    43     """display the command, execute it and raise an Exception if returned
    43     """display the command, execute it and raise an Exception if returned
    44     status != 0
    44     status != 0
    45     """
    45     """
    46     print cmd.replace(os.getcwd() + os.sep, '')
    46     print cmd.replace(os.getcwd() + os.sep, '')
    47     from subprocess import call
    47     from subprocess import call
    48     status = call(cmd)
    48     status = call(cmd, shell=True)
    49     if status != 0:
    49     if status != 0:
    50         raise Exception('status = %s' % status)
    50         raise Exception('status = %s' % status)
    51 
    51 
    52 
    52 
    53 def available_catalogs(i18ndir=None):
    53 def available_catalogs(i18ndir=None):