# Created by Matteo Rattotti on 13/03/06. # Copyright (c) 2006 Matteo Rattotti. All rights reserved. # Contact matteo.rattotti@gmail.com for any problem # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. from PyObjCTools import NibClassBuilder, AppHelper from Foundation import NSBundle info = NSBundle.mainBundle().infoDictionary()[u'PyObjCXcode'] for nibFile in info[u'NIBFiles']: NibClassBuilder.extractClasses(nibFile) for pythonModule in info[u'Modules']: __import__(pythonModule) if __name__ == '__main__': AppHelper.runEventLoop()