mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
Fix docstring for add_package in site.py.
This commit is contained in:
parent
d410b320ec
commit
8d76cca026
1 changed files with 4 additions and 2 deletions
|
|
@ -118,8 +118,10 @@ def _init_pathinfo():
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def addpackage(sitedir, name, known_paths):
|
def addpackage(sitedir, name, known_paths):
|
||||||
"""Add a new path to known_paths by combining sitedir and 'name' or execute
|
"""Process a .pth file within the site-packages directory:
|
||||||
sitedir if it starts with 'import'"""
|
For each line in the file, either combine it with sitedir to a path
|
||||||
|
and add that to known_paths, or execute it if it starts with 'import '.
|
||||||
|
"""
|
||||||
if known_paths is None:
|
if known_paths is None:
|
||||||
_init_pathinfo()
|
_init_pathinfo()
|
||||||
reset = 1
|
reset = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue