home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / digsbypaths.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  842 b   |  18 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import os.path as os
  5. import sys
  6. platformName = dict(darwin = 'mac', linux2 = 'gtk', win32 = 'win')[sys.platform]
  7.  
  8. def get_platlib_dir(debug = None):
  9.     if debug is None:
  10.         debug = hasattr(sys, 'gettotalrefcount')
  11.     
  12.     build_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'build')
  13.     platlib_parent_dir = os.getenv('DIGSBY_PLATLIB_LOCATION', build_dir)
  14.     platlib = os.path.join(platlib_parent_dir, 'platlib_%s32_26' % platformName)
  15.     None += platlib if debug else ''
  16.     return os.path.abspath(platlib)
  17.  
  18.