[Request] [+ ] D12621: check-py3-compat: use an absolute path in sys.path

av6 (Anton Shestakov) phabricator at mercurial-scm.org
Tue May 10 07:28:53 UTC 2022


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/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
@@ -76,7 +76,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())
 
     for f in sys.argv[1:]:
         with warnings.catch_warnings(record=True) as warns:



To: av6, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20220510/397d6fd9/attachment.html>


More information about the Mercurial-patches mailing list