[Updated] D12599: doc: use an absolute path in sys.path to work around a python DLL loading bug

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Wed May 4 09:04:49 UTC 2022


Closed by commit rHG1b6e381521c5: doc: use an absolute path in sys.path to work around a python DLL loading bug (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12599?vs=33330&id=33334

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

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

AFFECTED FILES
  doc/gendoc.py

CHANGE DETAILS

diff --git a/doc/gendoc.py b/doc/gendoc.py
--- a/doc/gendoc.py
+++ b/doc/gendoc.py
@@ -22,7 +22,7 @@
 # available. Relax C module requirements.
 os.environ['HGMODULEPOLICY'] = 'allow'
 # import from the live mercurial repo
-sys.path.insert(0, "..")
+sys.path.insert(0, os.path.abspath(".."))
 from mercurial import demandimport
 
 demandimport.enable()



To: mharbison72, #hg-reviewers, Alphare
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220504/8383a00d/attachment-0002.html>


More information about the Mercurial-patches mailing list