mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
The usual (and some new modules).
This commit is contained in:
parent
d57548023f
commit
a11ccccd24
17 changed files with 1011 additions and 285 deletions
|
@ -155,7 +155,12 @@ def get_qualified_path(name):
|
|||
""" return a more qualified path to name"""
|
||||
import sys
|
||||
import os
|
||||
for dir in sys.path:
|
||||
path = sys.path
|
||||
try:
|
||||
path = [os.path.dirname(__file__)] + path
|
||||
except NameError:
|
||||
pass
|
||||
for dir in path:
|
||||
fullname = os.path.join(dir, name)
|
||||
if os.path.exists(fullname):
|
||||
return fullname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue