home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
- import os.path as os
- import sys
- platformName = dict(darwin = 'mac', linux2 = 'gtk', win32 = 'win')[sys.platform]
-
- def get_platlib_dir(debug = None):
- if debug is None:
- debug = hasattr(sys, 'gettotalrefcount')
-
- build_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'build')
- platlib_parent_dir = os.getenv('DIGSBY_PLATLIB_LOCATION', build_dir)
- platlib = os.path.join(platlib_parent_dir, 'platlib_%s32_26' % platformName)
- None += platlib if debug else ''
- return os.path.abspath(platlib)
-
-