mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix the class browser to work even when the file is not on sys.path.
This commit is contained in:
parent
060f24ce97
commit
654387efbd
2 changed files with 3 additions and 3 deletions
|
@ -20,10 +20,10 @@ from ScrolledList import ScrolledList
|
|||
|
||||
class ClassBrowser:
|
||||
|
||||
def __init__(self, flist, name):
|
||||
def __init__(self, flist, name, path=[]):
|
||||
root = flist.root
|
||||
try:
|
||||
dict = pyclbr.readmodule(name)
|
||||
dict = pyclbr.readmodule(name, path)
|
||||
except ImportError, msg:
|
||||
tkMessageBox.showerror("Import error", str(msg), parent=root)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue