Patchwork D12622: doc: use an absolute path in sys.path

login
register
mail settings
Submitter phabricator
Date May 10, 2022, 7:29 a.m.
Message ID <differential-rev-PHID-DREV-iyzdjtfsipv4xdsm7rxe-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50974/
State New
Headers show

Comments

phabricator - May 10, 2022, 7:29 a.m.
av6 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The idea and rationale is similar to https://phab.mercurial-scm.org/D12599
  (landed as 1b6e381521c5 <https://phab.mercurial-scm.org/rHG1b6e381521c5288b9223443b42321220c0839233>).

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12622

AFFECTED FILES
  doc/check-seclevel.py

CHANGE DETAILS




To: av6, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/doc/check-seclevel.py b/doc/check-seclevel.py
--- a/doc/check-seclevel.py
+++ b/doc/check-seclevel.py
@@ -9,7 +9,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()