Skip to content

Commit

Permalink
Replace comment with a more appropriate description
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 24, 2023
1 parent 199824c commit 4224f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyproject_hooks/_in_process/_in_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def __init__(self, hook_name=None):

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

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

Expand Down

0 comments on commit 4224f9b

Please sign in to comment.