# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-"""fix extensions.disabled() to work on frozen package"""
+"""fix extensions.disabled() to work on frozen package
+In frozen environment (built by py2exe), extensions.disabled() cannot list
+up packaged extensions. This fixes it by:
+ - importing pre-build __index__ of extensions if available
+ - otherwise reading library.zip
import sys, os, re, zipfile, marshal
from mercurial import util, extensions, help