SHARE
TWEET

cap6_reto1

a guest Nov 29th, 2011 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top