guetzli-recursively-gui/.eggs/py2app-0.12-py3.6.egg/py2app/bootstrap/setup_included_subpackages.py
2017-04-20 00:57:59 +02:00

21 lines
599 B
Python

def _included_subpackages(packages):
for pkg in packages:
pass
class Finder (object):
def find_module(self, fullname, path=None):
if fullname in _path_hooks:
return Loader()
class Loader (object):
def load_module(self, fullname):
import imp, os
pkg_dir = os.path.join(os.environ['RESOURCEPATH'],
'lib', 'python%d.%d'%(sys.version_info[:2]))
return imp.load_module(
fullname, None,
os.path.join(pkg_dir, fullname), ('', '', imp.PKG_DIRECTORY))
import sys
sys.meta_path.insert(0, Finder())