mercurial/util.py
changeset 43671 664e24207728
parent 43657 38387f9e4d22
child 43672 9fb85668ee15
--- a/mercurial/util.py	Thu Nov 14 17:36:01 2019 -0800
+++ b/mercurial/util.py	Thu Nov 14 11:52:22 2019 -0800
@@ -54,6 +54,7 @@
 from .utils import (
     compression,
     procutil,
+    resourceutil,
     stringutil,
 )
 
@@ -1823,7 +1824,7 @@
 
 
 # the location of data files matching the source code
-if procutil.mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':
+if resourceutil.mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':
     # executable version (py2exe) doesn't support __file__
     datapath = os.path.dirname(pycompat.sysexecutable)
 else: