mercurial/hook.py
changeset 43671 664e24207728
parent 43503 313e3a279828
child 44652 3cbbfd0bfc17
--- a/mercurial/hook.py	Thu Nov 14 17:36:01 2019 -0800
+++ b/mercurial/hook.py	Thu Nov 14 11:52:22 2019 -0800
@@ -22,6 +22,7 @@
 )
 from .utils import (
     procutil,
+    resourceutil,
     stringutil,
 )
 
@@ -48,7 +49,7 @@
             )
         modname = funcname[:d]
         oldpaths = sys.path
-        if procutil.mainfrozen():
+        if resourceutil.mainfrozen():
             # binary installs require sys.path manipulation
             modpath, modfile = os.path.split(modname)
             if modpath and modfile: