We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8f926 commit 27cb819Copy full SHA for 27cb819
1 file changed
Lib/site.py
@@ -859,10 +859,10 @@ def main():
859
# PEP 829: flush accumulated data from all .pth and .start files.
860
# Paths are extended first, then deprecated import lines are exec'd,
861
# and finally .start entry points are executed — ensuring sys.path is
862
- # fully populated before any startup code runs.
863
- _extend_syspath()
864
- _exec_imports()
865
- _execute_start_entrypoints()
+ # fully populated before any startup code runs. flush_pth_start()
+ # also clears the pending state so a later addsitedir() call does
+ # not re-apply already-processed data.
+ flush_pth_start()
866
setquit()
867
setcopyright()
868
sethelper()
0 commit comments