Commit f6c814ef authored by Gregorio's avatar Gregorio
Browse files

El nombre del fichero debería tomarse de la shell

parent 757ce1fa
import calcoohija
import sys
def main():
......@@ -12,8 +12,7 @@ class CalculadoraPlus(calcoohija.CalculadoraHija):
if __name__ == '__main__':
OperacionTotal = 0
NombreFichero = "OPERACIONES.CSV"
ListaOperaciones = ["Operando1,Operando2,Operacion"]
NombreFichero = sys.argv[1]
Calculadora = CalculadoraPlus()
for line in Calculadora.fichero:
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