guetzli-recursively-gui/.eggs/py2app-0.12-py3.6.egg/py2app/bootstrap/import_encodings.py

24 lines
579 B
Python
Raw Normal View History

2017-04-20 00:57:59 +02:00
def _import_encodings():
import os
import imp
import encodings
import pkgutil
import sys
del sys.path[:2]
import encodings.aliases
encodings.__path__ = pkgutil.extend_path(
encodings.__path__,
encodings.__name__)
#imp.reload(encodings)
import encodings.mac_roman
encodings.aliases.__file__ = os.path.join(
os.path.dirname(encodings.mac_roman.__file__),
'aliases.py' + encodings.mac_roman.__file__[:-1])
imp.reload(encodings.aliases)
imp.reload(encodings)
_import_encodings()