Ver Mensaje Individual
Antiguo 07-jul-2008, 09:52   #4 (permalink)
David
</Moderador>
David (Reg: abril-2005)
 
13.420 Mensajes
Ubicación: In this planet
David está desconectado
Exclamación Respuesta: Ayuda con un bacth en python

Lo siento es que escribí mal el código. Debe ser:
Código:
        if os.path.isfile(fullname) and fullname[-4:].lower()=='.avi':
            # Get the extension-based template string
            srctxt = avsp.GetSourceString(fullname)
            # Create the script string
            # Write the script text to a file
            fullname = fullname[:-4]
            f = open(fullname + '.avs', 'w')
            f.write(srctxt)
            f.close()
Siempre se me olvidan los paréntesis...
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.
  Responder Citando