comparison doc/check-seclevel.py @ 48869: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 c102b704edb5
children 13dfad0f9f7a
comparison
equal deleted inserted replaced
48868:3f9125db466f 48869:45e71954612c
8 import os 8 import os
9 import sys 9 import sys
10 10
11 # import from the live mercurial repo 11 # import from the live mercurial repo
12 os.environ['HGMODULEPOLICY'] = 'py' 12 os.environ['HGMODULEPOLICY'] = 'py'
13 sys.path.insert(0, "..") 13 sys.path.insert(0, os.path.abspath(".."))
14 from mercurial import demandimport 14 from mercurial import demandimport
15 15
16 demandimport.enable() 16 demandimport.enable()
17 from mercurial import ( 17 from mercurial import (
18 commands, 18 commands,