Submitter | phabricator |
---|---|
Date | May 10, 2022, 7:28 a.m. |
Message ID | <differential-rev-PHID-DREV-clct4l5z5fae33ybzujz-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/50973/ |
State | New |
Headers | show |
Comments
Patch
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: