Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv23098
Modified Files:
plugin.py
Log Message:
Make sure a plugin is only loaded once with the same args and type
Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** plugin.py 1 Sep 2003 18:45:28 -0000 1.35
--- plugin.py 3 Sep 2003 20:10:13 -0000 1.36
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.36 2003/09/03 20:10:13 dischi
+ # Make sure a plugin is only loaded once with the same args and type
+ #
# Revision 1.35 2003/09/01 18:45:28 dischi
# update doc
***************
*** 176,179 ****
--- 179,188 ----
__plugin_number__ += 1
+ for p in __all_plugins__:
+ if p[0] == name and p[1] == type and p[3] == args:
+ print 'WARNING: duplicate plugin activation, ignoring:'
+ print '<%s %s %s>' % (name, type, args)
+ print
+ return
if __initialized__:
__load_plugin__(name, type, level, args, __plugin_number__)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog