def do_convert(self, command):
        from_path = self.temp_input.name
        temp_output = tempfile.NamedTemporaryFile()
        to_path = temp_output.name
        p = Popen(command % {'to': to_path, 'from': from_path}, shell=True, stdout=PIPE, stderr=PIPE)
        #print command % {'to': to_path, 'from': from_path}
        stdout, stderr = p.communicate()
        temp_output.seek(0)
        return temp_output
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/converter.py/NewFileConverter.do_convert/original