Changeset 2138


Ignore:
Timestamp:
2011-06-21 13:31:22 (8 years ago)
Author:
tekrjant
Message:

More error checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/24/build_games.py

    r2137 r2138  
    88lib_dir_x86 = abspath('lib\\x86') 
    99projects_that_did_not_build = [] 
     10 
     11def check_requirements(): 
     12        if not exists("lib\\x86\\Jypeli4.dll"): 
     13                raise Exception("lib\\x86\\Jypeli4.dll expected") 
     14 
    1015 
    1116def build_games(): 
     
    2934def main(): 
    3035        try: 
     36                check_requirements() 
    3137                build_games() 
    3238        except KeyboardInterrupt: 
    3339                print "BUILD CANCELLED" 
     40        except Exception as e: 
     41                print 
     42                print "NOT SUCCESSFUL:", e 
     43                return 1 
    3444 
    35         print '' 
     45        print 
    3646        print 'Projects that did not build ({0}):'.format(len(projects_that_did_not_build)) 
    3747        for p in projects_that_did_not_build: 
Note: See TracChangeset for help on using the changeset viewer.