--- 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: