doc: use an absolute path in sys.path stable
authorAnton Shestakov <av6@dwimlabs.net>
Wed, 04 May 2022 13:53:12 +0400
branchstable
changeset 49205 45e71954612c
parent 49204 3f9125db466f
child 49208 2fe4efaa59af
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
doc/check-seclevel.py
--- 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()