Commit bffa4273 authored by Gregorio's avatar Gregorio
Browse files

El nombre del fichero debería tomarse de la shell

parent 6d38334b
......@@ -8,7 +8,7 @@ import calcoohija
if __name__ == "__main__":
calchija = calcoohija.CalculadoraHija()
File = open('prueba.csv', 'r')
File = open(sys.argv[1], 'r')
Lista = File.readlines() # Devuelve una lista con cada linea del fichero'
for linea in Lista:
ListaNumeros = linea.split(",")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment