Advertisement
Guest User

cap6_reto1

a guest
Nov 29th, 2011
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. # -*- coding: utf-8 *-*
  2.  
  3. from presupuesto import Presupuesto
  4. from recibo import PresupuestoConRecibo
  5.  
  6. if __name__ == "__main__":
  7.     import sys
  8.     try:
  9.         modelo = sys.argv[1]
  10.     except:
  11.         print "Error: Debes arumentar basico o recibo"
  12.     else:
  13.         if modelo == 'basico':
  14.             presupuesto = Presupuesto()
  15.         elif modelo == 'recibo':
  16.             presupuesto = PresupuestoConRecibo()
  17.         else:
  18.             print "Error: Opcion no valida"
  19.        
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement