Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/07/2008, 07:04
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
De acuerdo Respuesta: Ayuda con un bacth en python

Puedes intentar reemplazando esto:
Código:
        if os.path.isfile(fullname):
            # Get the extension-based template string
            srctxt = avsp.GetSourceString(fullname)
            # Create the script string
            # Write the script text to a file
            f = open(fullname + '.avs', 'w')
            f.write(srctxt)
            f.close()
Por esto:
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()
Me avisas si te funciona. Saludos
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.