mercurial/hook.py
changeset 14941 4a28cb4df1f8
parent 14916 58f97dcbd550
child 14943 d3bb825ddae3
--- a/mercurial/hook.py	Mon Jul 25 22:19:28 2011 +0300
+++ b/mercurial/hook.py	Mon Jul 25 16:14:02 2011 -0500
@@ -28,7 +28,7 @@
                                'a module)') % (hname, funcname))
         modname = funcname[:d]
         oldpaths = sys.path
-        if hasattr(sys, "frozen"):
+        if util.mainfrozen():
             # binary installs require sys.path manipulation
             modpath, modfile = os.path.split(modname)
             if modpath and modfile: