summaryrefslogtreecommitdiff
path: root/examples/pygtk-demo/demos/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pygtk-demo/demos/__init__.py')
-rw-r--r--examples/pygtk-demo/demos/__init__.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/pygtk-demo/demos/__init__.py b/examples/pygtk-demo/demos/__init__.py
deleted file mode 100644
index 0ca5ff54..00000000
--- a/examples/pygtk-demo/demos/__init__.py
+++ /dev/null
@@ -1,25 +0,0 @@
-
-import os
-
-_file_list = [
- x for x in os.listdir(os.path.dirname(__file__))
- if len(x) > 3 and x[-3:] == '.py']
-
-demo_list = []
-for _mod in _file_list:
- # Leave underscored Modulnames.
- if _mod.startswith('_'):
- continue
- _mod = _mod[:-3]
- try:
- _doc = ''
- exec 'import ' + _mod + '\n' + \
- '_doc = ' + _mod + '.__doc__'
- _description = _doc.splitlines()[0]
- demo_list.append((_description, _mod))
- except (ImportError, AttributeError), msg:
- # ImportError or AttributeError (if _doc is None)
- #print 'failed: ', _mod
- pass
-
-demo_list.sort()