Update of /cvsroot/freevo/freevo/src In directory sc8-pr-cvs1:/tmp/cvs-serv15689
Modified Files: skin.py Log Message: load skin only when needed Index: skin.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/skin.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** skin.py 24 Apr 2003 19:55:55 -0000 1.2 --- skin.py 12 Jul 2003 10:08:11 -0000 1.3 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.3 2003/07/12 10:08:11 dischi + # load skin only when needed + # # Revision 1.2 2003/04/24 19:55:55 dischi # comment cleanup for 1.3.2-pre4 *************** *** 61,71 **** DEBUG = config.DEBUG - # Loads the skin implementation defined in freevo_config.py - sys.path += [os.path.dirname(config.OSD_SKIN)] - modname = os.path.basename(config.OSD_SKIN)[:-3] - exec('import ' + modname + ' as skinimpl') - - if DEBUG: print 'Imported skin %s' % config.OSD_SKIN - _singleton = None --- 64,67 ---- *************** *** 77,80 **** --- 73,83 ---- global _singleton if _singleton == None: + # Loads the skin implementation defined in freevo_config.py + sys.path += [os.path.dirname(config.OSD_SKIN)] + modname = os.path.basename(config.OSD_SKIN)[:-3] + exec('import ' + modname + ' as skinimpl') + + if DEBUG: print 'Imported skin %s' % config.OSD_SKIN + _singleton = skinimpl.Skin() ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog