Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/idlelib/PathBrowser.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@s�ddlZddlZddlZddlmZddlmZmZddlm	Z	defd��YZ
defd��YZd	efd
��YZd�Z
edkr�d
lmZedddde�ddlmZee
�ndS(i�N(tTreeItem(tClassBrowsertModuleBrowserTreeItem(tPyShellFileListtPathBrowsercBs&eZed�Zd�Zd�ZRS(cCs||_|j|�dS(sG
        _htest - bool, change box location when running htest
        N(t_htesttinit(tselftflistR((s)/sys/lib/python2.7/idlelib/PathBrowser.pyt__init__s	cCs$|jjd�|jjd�dS(NsPath Browser(ttoptwm_titletwm_iconname(R((s)/sys/lib/python2.7/idlelib/PathBrowser.pytsettitlescCst�S(N(tPathBrowserTreeItem(R((s)/sys/lib/python2.7/idlelib/PathBrowser.pytrootnodes(t__name__t
__module__tFalseR	R
R(((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR
s	RcBseZd�Zd�ZRS(cCsdS(Nssys.path((R((s)/sys/lib/python2.7/idlelib/PathBrowser.pytGetTextscCs7g}x*tjD]}t|�}|j|�qW|S(N(tsystpathtDirBrowserTreeItemtappend(Rtsublisttdirtitem((s)/sys/lib/python2.7/idlelib/PathBrowser.pyt
GetSubLists
(RRRR(((s)/sys/lib/python2.7/idlelib/PathBrowser.pyRs	RcBs8eZgd�Zd�Zd�Zd�Zd�ZRS(cCs||_||_dS(N(Rtpackages(RRR((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR	(s	cCs#|js|jS|jddSdS(Ni�s	: package(RR(R((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR,s	cCs?ytj|jptj�}Wntjk
r6gSXg}x`|D]X}tjj|j|�}|j|�rDtjj|�}|j	|||f�qDqDW|j
�g}x=|D]5\}}}t||j|g�}|j	|�q�WxH|j
|�D]7\}}ttjj|j|��}|j	|�qW|S(N(tostlistdirRtcurdirterrorRtjointispackagedirtnormcaseRtsortRRtlistmodulesR(RtnamesRtnametfiletnnRR((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR2s&

cCs;tjj|�sdStjj|d�}tjj|�S(Nis__init__.py(RRtisdirR!texists(RR(R((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR"GscCs�i}tj�}g}x�|D]�\}}}t|�}xw|D]n}	tjj|	�}
|
||krC|	| }||kr�d||<|j|
|	f�|j|	�q�qCqCWqW|j	�|S(N(
timptget_suffixestlenRRR#tNoneRtremoveR$(RtallnamestmodulestsuffixestsortedtsufftmodetflagtiR'tnormed_nametmod_name((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR%Ms



(RRR	RRR"R%(((s)/sys/lib/python2.7/idlelib/PathBrowser.pyR&s
			cCs*t|�}t|dt�|j�dS(NR(RRtTruetmainloop(tparentR((s)/sys/lib/python2.7/idlelib/PathBrowser.pyt
_path_browser^st__main__(tmains"idlelib.idle_test.test_pathbrowsert	verbosityitexit(trun(RRR,tidlelib.TreeWidgetRtidlelib.ClassBrowserRRtidlelib.PyShellRRRRR>RtunittestR@Rtidlelib.idle_test.htestRC(((s)/sys/lib/python2.7/idlelib/PathBrowser.pyt<module>s8	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.