Skip to content

Commit

Permalink
Set PYTHONSAFEPATH to avoid picking up in-package files at top level.
Browse files Browse the repository at this point in the history
Ref #11
  • Loading branch information
jaraco committed Aug 26, 2024
1 parent 2d96568 commit f4bf035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def build_env(target, *, orig=os.environ):
orig.get('PYTHONPATH', ''), os.fspath(target)
),
PYTEST_ADDOPTS='--doctest-modules',
PYTHONSAFEPATH=1,
)
return {**orig, **overlay}

Expand Down

0 comments on commit f4bf035

Please sign in to comment.