Mercurial > hg
changeset 49205:45e71954612c stable
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
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 04 May 2022 13:53:12 +0400 |
parents | 3f9125db466f |
children | 2fe4efaa59af |
files | doc/check-seclevel.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/check-seclevel.py Wed May 04 13:48:40 2022 +0400 +++ b/doc/check-seclevel.py Wed May 04 13:53:12 2022 +0400 @@ -10,7 +10,7 @@ # 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()