Changeset 5607

Show
Ignore:
Timestamp:
07/26/12 03:08:11 (7 years ago)
Author:
justinc
Message:

Fix for ticket 1070. --simple is obsolete

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/repy_v2/repy/repy.py

    r5142 r5607  
    2323  Where [options] are some combination of the following: 
    2424 
    25   --simple               : Simple execution mode -- execute and exit 
    2625  --ip IP                : This flag informs Repy that it is allowed to bind to the given given IP. 
    2726                         : This flag may be asserted multiple times. 
     
    166165  # Let the code string get GC'ed 
    167166  usercode = None 
    168  
    169   # If we are in "simple execution" mode, execute and exit 
    170   if simpleexec: 
    171     main_namespace.evaluate(usercontext) 
    172     sys.exit(0) 
    173  
    174167 
    175168  # I'll use this to detect when the program is idle so I know when to quit... 
     
    232225Where [options] are some combination of the following: 
    233226 
    234 --simple               : Simple execution mode -- execute and exit 
    235227--ip IP                : This flag informs Repy that it is allowed to bind to the given given IP. 
    236228                       : This flag may be asserted multiple times. 
     
    252244 
    253245if __name__ == '__main__': 
    254   global simpleexec 
    255246  global logfile 
    256247 
     
    291282  try: 
    292283    optlist, fnlist = getopt.getopt(args, '', [ 
    293       'simple', 'ip=', 'iface=', 'nootherips', 'logfile=', 
     284      'ip=', 'iface=', 'nootherips', 'logfile=', 
    294285      'stop=', 'status=', 'cwd=', 'servicelog' 
    295286      ]) 
     
    299290    sys.exit(1) 
    300291 
    301   # Set up the simple variable if needed 
    302   simpleexec = False 
    303  
    304292  # By default we don't want to use the service logger 
    305293  servicelog = False 
     
    319307 
    320308  for option, value in optlist: 
    321     if option == '--simple': 
    322       simpleexec = True 
    323  
    324     elif option == '--ip': 
     309    if option == '--ip': 
    325310      emulcomm.user_ip_interface_preferences = True 
    326311