home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / gui / native / __init__.pyo (.txt) next >
Encoding:
Python Compiled Bytecode  |  2009-02-26  |  1.7 KB  |  49 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. import wx
  5. import sys
  6. from logging import getLogger
  7. log = getLogger('Not Implemented')
  8.  
  9. def notImplemented():
  10.     caller_info = sys._getframe(1).f_code
  11.     notImplMessage = 'Unimplemented function. Function %s at line %d of file %s' % (caller_info.co_name, caller_info.co_firstlineno, caller_info.co_filename)
  12.     if getattr(sys, 'notImplementedIsError', False):
  13.         raise NotImplementedError(notImplMessage)
  14.     else:
  15.         log.error(notImplMessage)
  16.  
  17.  
  18. def getPlatformDir():
  19.     if 'wxMSW' in wx.PlatformInfo:
  20.         return 'win'
  21.     elif 'wxMac' in wx.PlatformInfo:
  22.         return 'mac'
  23.     elif 'wxGTK' in wx.PlatformInfo:
  24.         return 'gtk'
  25.     else:
  26.         notImplemented()
  27.  
  28.  
  29. def extendStdPaths():
  30.     exec 'import %s.%spaths' % (getPlatformDir(), getPlatformDir())
  31.  
  32. if 'wxMSW' in wx.PlatformInfo:
  33.     
  34.     def lower_memory_footprint():
  35.         import win.process as win
  36.         win.process.page_out_ram()
  37.  
  38.     from memfootprint import memory_event
  39. else:
  40.     
  41.     def lower_memory_footprint():
  42.         pass
  43.  
  44.     
  45.     def memory_event():
  46.         pass
  47.  
  48. exec 'from %s import *' % getPlatformDir()
  49.