""" try: __file__ except NameError: pass else: import os if os.path.splitext(os.path.basename(__file__))[0] == "__init__": try: from resourcepackage import package, defaultgenerators generators = defaultgenerators.generators.copy() ### CUSTOMISATION POINT ## import specialised generators here, such as for wxPython #from resourcepackage import wxgenerators #generators.update( wxgenerators.generators ) except ImportError: pass else: package = package.Package( packageName=__name__, directory=os.path.dirname(os.path.abspath(__file__)), generators=generators, ) package.scan( ### CUSTOMISATION POINT ## force true -> always re-loads from external files, otherwise ## only reloads if the file is newer than the generated .py file. # force = 1, )
generators = defaultgenerators.generators.copy() except ImportError: pass else: package = package.Package( packageName = __name__, directory = os.path.dirname( os.path.abspath(__file__) ), generators = generators, ) package.scan( ) __license__ = """ ResourcePackage License Copyright (c) 2003, Michael C. Fletcher, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
""" try: __file__ except NameError: pass else: import os if os.path.splitext(os.path.basename( __file__ ))[0] == "__init__": try: from resourcepackage import package, defaultgenerators generators = defaultgenerators.generators.copy() ### CUSTOMISATION POINT ## import specialised generators here, such as for wxPython ## from resourcepackage import wxgenerators ## generators.update( wxgenerators.generators ) except ImportError: pass else: package = package.Package( packageName = __name__, directory = os.path.dirname( os.path.abspath(__file__) ), generators = generators, ) package.scan( ### CUSTOMISATION POINT ## force true -> always re-loads from external files, otherwise ## only reloads if the file is newer than the generated .py file. # force = 1, )