home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 July / CD 3 / redhat-6.2.iso / RedHat / instimage / usr / lib / python1.5 / site-packages / gnome / __init__.py next >
Encoding:
Text File  |  2000-02-16  |  809 b   |  32 lines

  1. __all__ = ['tty',     # libgtktty
  2.        'xmhtml',  # libgtk-xmhtml
  3.        'ui',      # libgnomeui
  4.        'zvt',     # libzvt
  5.        'applet',  # panel applets
  6.        'capplet', # control center capplets
  7.        'config', 'file', 'help', 'history',
  8.        'metadata', 'mime', 'score', 'url', 'util'] # libgnome
  9.  
  10. # set app_id and app_version where other modules can find it easily ...
  11.  
  12. import sys, string
  13. if len(sys.argv) > 0:
  14.     app_id = sys.argv[0][string.rfind(sys.argv[0], '/')+1:]
  15.     if app_id[-3:] == '.py':
  16.         app_id = app_id[:-3]
  17.     elif app_id[-4:] in ('.pyc', '.pyo'):
  18.         app_id = app_id[:-4]
  19. else:
  20.     app_id = 'unknown'
  21. del sys, string
  22.  
  23. app_version = "0.0"
  24.  
  25. gnomelib_init_called = 0
  26. gnome_init_called = 0
  27.  
  28. if vars().has_key('__'):
  29.     # ni has been used -- move all symbols to module __
  30.     exec "from __init__ import *" in __.__dict__
  31.  
  32.