--- a/mercurial/help.py Thu Nov 14 12:41:33 2019 -0800
+++ b/mercurial/help.py Thu Nov 14 13:18:22 2019 -0800
@@ -36,7 +36,10 @@
util,
)
from .hgweb import webcommands
-from .utils import compression
+from .utils import (
+ compression,
+ resourceutil,
+)
_exclkeywords = {
b"(ADVANCED)",
@@ -311,7 +314,7 @@
"""Return a delayed loader for help/topic.txt."""
def loader(ui):
- docdir = os.path.join(util.datapath, b'helptext')
+ docdir = os.path.join(resourceutil.datapath, b'helptext')
if subdir:
docdir = os.path.join(docdir, subdir)
path = os.path.join(docdir, topic + b".txt")