[Commented On] D12621: check-py3-compat: use an absolute path in sys.path

baymax (Baymax, Your Personal Patch-care Companion) phabricator at mercurial-scm.org
Tue May 24 16:50:58 UTC 2022


baymax added a comment.
baymax updated this revision to Diff 33448.


  ✅ refresh by Heptapod after a successful CI run (🐙 💚)
  ⚠ This patch is intended for stable ⚠
  <img src="https://phab.mercurial-scm.org/file/data/mvkmk5kljvqbf7nkivnv/PHID-FILE-6mzlgmh6kc53zogoba7l/source.gif" />

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12621?vs=33445&id=33448

BRANCH
  stable

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

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

AFFECTED FILES
  contrib/check-py3-compat.py

CHANGE DETAILS

diff --git a/contrib/check-py3-compat.py b/contrib/check-py3-compat.py
--- a/contrib/check-py3-compat.py
+++ b/contrib/check-py3-compat.py
@@ -105,7 +105,7 @@
         # specified. When running as test-check-py3-compat.t, we technically
         # would import the correct paths, but it's cleaner to have both cases
         # use the same import logic.
-        sys.path.insert(0, '.')
+        sys.path.insert(0, os.getcwd())
         fn = check_compat_py3
 
     for f in sys.argv[1:]:



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


More information about the Mercurial-patches mailing list