Skip to content

Commit 4224f9b

Browse files
committed
Replace comment with a more appropriate description
1 parent 199824c commit 4224f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyproject_hooks/_in_process/_in_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def __init__(self, hook_name=None):
5757

5858
def _build_backend():
5959
"""Find and load the build backend"""
60-
# Add in-tree backend directories to the front of sys.path.
6160
backend_path = os.environ.get("PEP517_BACKEND_PATH")
6261
ep = os.environ["PEP517_BUILD_BACKEND"]
6362
mod_path, _, obj_path = ep.partition(":")
6463

6564
if backend_path:
65+
# Ensure in-tree backend directories have the highest priority when importing.
6666
extra_pathitems = backend_path.split(os.pathsep)
6767
sys.meta_path.insert(0, _BackendPathFinder(extra_pathitems, mod_path))
6868

0 commit comments

Comments
 (0)