home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / gui / native / __init__.pyo (.txt) next >
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  1.7 KB  |  48 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  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.     getattr(sys, 'notImplementedIsError', False)
  15.     log.error(notImplMessage)
  16.  
  17.  
  18. def getPlatformDir():
  19.     if 'wxMSW' in wx.PlatformInfo:
  20.         return 'win'
  21.     if 'wxMac' in wx.PlatformInfo:
  22.         return 'mac'
  23.     if 'wxGTK' in wx.PlatformInfo:
  24.         return 'gtk'
  25.     notImplemented()
  26.  
  27.  
  28. def extendStdPaths():
  29.     exec 'import %s.%spaths' % (getPlatformDir(), getPlatformDir())
  30.  
  31. if 'wxMSW' in wx.PlatformInfo:
  32.     
  33.     def lower_memory_footprint():
  34.         import win.process as win
  35.         win.process.page_out_ram()
  36.  
  37.     from memfootprint import memory_event
  38. else:
  39.     
  40.     def lower_memory_footprint():
  41.         pass
  42.  
  43.     
  44.     def memory_event():
  45.         pass
  46.  
  47. exec 'from %s import *' % getPlatformDir()
  48.