Changeset 815


Ignore:
Timestamp:
03/12/11 00:38:50 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • per Technomage's suggestion, added try/except block to setup portion of script. I wrapped the rename function into finally so that the launcher script is moved back regardless.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/setup.py

    r807 r815  
    106106rename_launcher() 
    107107 
    108 if system == 'Linux': 
    109     setup(**linux_args()) 
    110 elif system == 'Windows': 
    111     setup(**windows_args()) 
    112 else: 
    113     #TODO: actually support mac 
    114     print('Sorry, {0} is currently not supported.\nAborting...'.format(system)) 
    115     sys.exit(0) 
    116  
    117 # rename system executable back to run.py 
    118 rename_launcher() 
     108try: 
     109    if system == 'Linux': 
     110        setup(**linux_args()) 
     111    elif system == 'Windows': 
     112        setup(**windows_args()) 
     113    else: 
     114        #TODO: actually support mac 
     115        print('Sorry, {0} is currently not supported.\nAborting...'.format(system)) 
     116        sys.exit(0) 
     117except: 
     118    pass 
     119finally: 
     120    # rename system executable back to run.py 
     121    rename_launcher() 
Note: See TracChangeset for help on using the changeset viewer.