Author: dmeyer
Date: Thu Mar 23 19:31:24 2006
New Revision: 1321
Added:
trunk/epg/src/source.py
Log:
get global list of all possible sources
Added: trunk/epg/src/source.py
==============================================================================
--- (empty file)
+++ trunk/epg/src/source.py Thu Mar 23 19:31:24 2006
@@ -0,0 +1,12 @@
+import os
+
+sources = {}
+
+for f in os.listdir(os.path.dirname(__file__)):
+ if not f.startswith('source_') or not f.endswith('.py'):
+ continue
+ try:
+ exec('import %s as s' % f[:-3])
+ except ImportError:
+ continue
+ sources[f[7:-3]] = s
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog