# HG changeset patch # User Anton Shestakov # Date 2022-05-04 09:53:12 # Node ID 45e71954612cf2ecb1785fc8c82cddb80c1bc7a0 # Parent 3f9125db466f48e64f421bac0b434b9d2e6f3a83 doc: use an absolute path in sys.path The idea and rationale is similar to https://phab.mercurial-scm.org/D12599 (landed as 1b6e381521c5). Differential Revision: https://phab.mercurial-scm.org/D12622 diff --git a/doc/check-seclevel.py b/doc/check-seclevel.py --- a/doc/check-seclevel.py +++ b/doc/check-seclevel.py @@ -10,7 +10,7 @@ import sys # import from the live mercurial repo os.environ['HGMODULEPOLICY'] = 'py' -sys.path.insert(0, "..") +sys.path.insert(0, os.path.abspath("..")) from mercurial import demandimport demandimport.enable()