<|file_name|>setup_pkgresource.py<|end_file_name|><｜fim▁begin｜>def _setup_pkgresources():
    import pkg_resources
    import os
    import plistlib

    pl = plistlib.readPlist(os.path.join(
        os.path.dirname(os.getenv('RESOURCEPATH')), "Info.plist"))<｜fim▁hole｜>    pkg_resources.set_extraction_path(path)


_setup_pkgresources()<｜fim▁end｜>
    appname = pl.get('CFBundleIdentifier')
    if appname is None:
        appname = pl['CFBundleDisplayName']
    path = os.path.expanduser('~/Library/Caches/%s/python-eggs' % (appname,))