KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/pygtk/2.0/demos/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/pygtk/2.0/demos/__init__.py
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()

Anon7 - 2021