[Updated] D12622: doc: use an absolute path in sys.path

av6 (Anton Shestakov) phabricator at mercurial-scm.org
Tue May 24 16:26:24 UTC 2022


Closed by commit rHG45e71954612c: doc: use an absolute path in sys.path (authored by av6).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12622?vs=33444&id=33446

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12622/new/

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

AFFECTED FILES
  doc/check-seclevel.py

CHANGE DETAILS

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 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()



To: av6, #hg-reviewers, xcintax, Alphare
Cc: Alphare, xcintax, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220524/c3c4acaf/attachment-0002.html>


More information about the Mercurial-patches mailing list