GRAYBYTE WORDPRESS FILE MANAGER5245

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python33/lib64/python3.3/idlelib/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python33/lib64/python3.3/idlelib//PathBrowser.py
import os
import sys
import importlib.machinery

from idlelib.TreeWidget import TreeItem
from idlelib.ClassBrowser import ClassBrowser, ModuleBrowserTreeItem

class PathBrowser(ClassBrowser):

    def __init__(self, flist):
        self.init(flist)

    def settitle(self):
        self.top.wm_title("Path Browser")
        self.top.wm_iconname("Path Browser")

    def rootnode(self):
        return PathBrowserTreeItem()

class PathBrowserTreeItem(TreeItem):

    def GetText(self):
        return "sys.path"

    def GetSubList(self):
        sublist = []
        for dir in sys.path:
            item = DirBrowserTreeItem(dir)
            sublist.append(item)
        return sublist

class DirBrowserTreeItem(TreeItem):

    def __init__(self, dir, packages=[]):
        self.dir = dir
        self.packages = packages

    def GetText(self):
        if not self.packages:
            return self.dir
        else:
            return self.packages[-1] + ": package"

    def GetSubList(self):
        try:
            names = os.listdir(self.dir or os.curdir)
        except os.error:
            return []
        packages = []
        for name in names:
            file = os.path.join(self.dir, name)
            if self.ispackagedir(file):
                nn = os.path.normcase(name)
                packages.append((nn, name, file))
        packages.sort()
        sublist = []
        for nn, name, file in packages:
            item = DirBrowserTreeItem(file, self.packages + [name])
            sublist.append(item)
        for nn, name in self.listmodules(names):
            item = ModuleBrowserTreeItem(os.path.join(self.dir, name))
            sublist.append(item)
        return sublist

    def ispackagedir(self, file):
        if not os.path.isdir(file):
            return 0
        init = os.path.join(file, "__init__.py")
        return os.path.exists(init)

    def listmodules(self, allnames):
        modules = {}
        suffixes = importlib.machinery.EXTENSION_SUFFIXES[:]
        suffixes += importlib.machinery.SOURCE_SUFFIXES[:]
        suffixes += importlib.machinery.BYTECODE_SUFFIXES[:]
        sorted = []
        for suff in suffixes:
            i = -len(suff)
            for name in allnames[:]:
                normed_name = os.path.normcase(name)
                if normed_name[i:] == suff:
                    mod_name = name[:i]
                    if mod_name not in modules:
                        modules[mod_name] = None
                        sorted.append((normed_name, name))
                        allnames.remove(name)
        sorted.sort()
        return sorted

def main():
    from idlelib import PyShell
    PathBrowser(PyShell.flist)
    if sys.stdin is sys.__stdin__:
        mainloop()

if __name__ == "__main__":
    from unittest import main
    main('idlelib.idle_test.test_pathbrowser', verbosity=2, exit=False)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2024 08:31:19
root / linksafe
0755
Icons
--
May 20 2024 08:31:19
root / linksafe
0755
__pycache__
--
May 20 2024 08:31:19
root / linksafe
0755
idle_test
--
May 20 2024 08:31:19
root / linksafe
0755
AutoComplete.py
8.869 KB
April 17 2024 16:58:17
root / linksafe
0644
AutoCompleteWindow.py
17.258 KB
April 17 2024 16:58:17
root / linksafe
0644
AutoExpand.py
2.425 KB
April 17 2024 16:58:17
root / linksafe
0644
Bindings.py
3.354 KB
April 17 2024 16:58:17
root / linksafe
0644
CREDITS.txt
1.821 KB
September 19 2017 07:32:02
root / linksafe
0644
CallTipWindow.py
5.761 KB
April 17 2024 16:58:17
root / linksafe
0644
CallTips.py
5.793 KB
April 17 2024 16:58:17
root / linksafe
0644
ChangeLog
55.071 KB
September 19 2017 07:32:02
root / linksafe
0644
ClassBrowser.py
6.222 KB
April 17 2024 16:58:17
root / linksafe
0644
CodeContext.py
8.157 KB
April 17 2024 16:58:17
root / linksafe
0644
ColorDelegator.py
10.222 KB
April 17 2024 16:58:17
root / linksafe
0644
Debugger.py
15.983 KB
April 17 2024 16:58:17
root / linksafe
0644
Delegator.py
0.649 KB
April 17 2024 16:58:17
root / linksafe
0644
EditorWindow.py
64.753 KB
April 17 2024 16:58:17
root / linksafe
0644
FileList.py
3.725 KB
April 17 2024 16:58:17
root / linksafe
0644
FormatParagraph.py
6.998 KB
April 17 2024 16:58:17
root / linksafe
0644
GrepDialog.py
4.015 KB
April 17 2024 16:58:17
root / linksafe
0644
HISTORY.txt
10.075 KB
September 19 2017 07:32:02
root / linksafe
0644
HyperParser.py
10.314 KB
April 17 2024 16:58:17
root / linksafe
0644
IOBinding.py
19.396 KB
April 17 2024 16:58:17
root / linksafe
0644
IdleHistory.py
4.021 KB
April 17 2024 16:58:17
root / linksafe
0644
MultiCall.py
17.118 KB
April 17 2024 16:58:17
root / linksafe
0644
MultiStatusBar.py
0.765 KB
April 17 2024 16:58:17
root / linksafe
0644
NEWS.txt
33.61 KB
September 19 2017 07:32:02
root / linksafe
0644
ObjectBrowser.py
3.661 KB
April 17 2024 16:58:17
root / linksafe
0644
OutputWindow.py
4.291 KB
April 17 2024 16:58:17
root / linksafe
0644
ParenMatch.py
6.472 KB
April 17 2024 16:58:17
root / linksafe
0644
PathBrowser.py
2.811 KB
April 17 2024 16:58:17
root / linksafe
0644
Percolator.py
2.596 KB
April 17 2024 16:58:17
root / linksafe
0644
PyParse.py
18.959 KB
April 17 2024 16:58:17
root / linksafe
0644
PyShell.py
56.521 KB
April 17 2024 16:58:17
root / linksafe
0755
README.txt
2.443 KB
September 19 2017 07:32:02
root / linksafe
0644
RemoteDebugger.py
11.747 KB
April 17 2024 16:58:17
root / linksafe
0644
RemoteObjectBrowser.py
0.941 KB
April 17 2024 16:58:17
root / linksafe
0644
ReplaceDialog.py
5.692 KB
April 17 2024 16:58:17
root / linksafe
0644
RstripExtension.py
1.025 KB
April 17 2024 16:58:17
root / linksafe
0644
ScriptBinding.py
7.88 KB
April 17 2024 16:58:17
root / linksafe
0644
ScrolledList.py
3.903 KB
April 17 2024 16:58:17
root / linksafe
0644
SearchDialog.py
1.969 KB
April 17 2024 16:58:17
root / linksafe
0644
SearchDialogBase.py
5.063 KB
April 17 2024 16:58:17
root / linksafe
0644
SearchEngine.py
7.367 KB
April 17 2024 16:58:17
root / linksafe
0644
StackViewer.py
3.483 KB
April 17 2024 16:58:17
root / linksafe
0644
TODO.txt
8.279 KB
September 19 2017 07:32:02
root / linksafe
0644
ToolTip.py
2.672 KB
April 17 2024 16:58:17
root / linksafe
0644
TreeWidget.py
14.863 KB
April 17 2024 16:58:17
root / linksafe
0644
UndoDelegator.py
10.063 KB
April 17 2024 16:58:17
root / linksafe
0644
WidgetRedirector.py
4.372 KB
April 17 2024 16:58:17
root / linksafe
0644
WindowList.py
2.414 KB
April 17 2024 16:58:17
root / linksafe
0644
ZoomHeight.py
1.276 KB
April 17 2024 16:58:17
root / linksafe
0644
__init__.py
0.036 KB
April 17 2024 16:58:17
root / linksafe
0644
__main__.py
0.106 KB
April 17 2024 16:58:17
root / linksafe
0644
aboutDialog.py
6.421 KB
April 17 2024 16:58:17
root / linksafe
0644
config-extensions.def
2.723 KB
September 19 2017 07:32:02
root / linksafe
0644
config-highlight.def
1.699 KB
September 19 2017 07:32:02
root / linksafe
0644
config-keys.def
7.348 KB
September 19 2017 07:32:02
root / linksafe
0644
config-main.def
2.455 KB
September 19 2017 07:32:02
root / linksafe
0644
configDialog.py
51.611 KB
April 17 2024 16:58:17
root / linksafe
0644
configHandler.py
28.636 KB
April 17 2024 16:58:17
root / linksafe
0644
configHelpSourceEdit.py
6.567 KB
April 17 2024 16:58:17
root / linksafe
0644
configSectionNameDialog.py
4.213 KB
April 17 2024 16:58:17
root / linksafe
0644
dynOptionMenuWidget.py
1.277 KB
April 17 2024 16:58:17
root / linksafe
0644
extend.txt
3.557 KB
September 19 2017 07:32:02
root / linksafe
0644
help.txt
11.713 KB
September 19 2017 07:32:02
root / linksafe
0644
idle.py
0.391 KB
April 17 2024 16:58:17
root / linksafe
0644
idle.pyw
0.655 KB
September 19 2017 07:32:02
root / linksafe
0644
idlever.py
0.022 KB
April 17 2024 16:58:17
root / linksafe
0644
keybindingDialog.py
12.136 KB
April 17 2024 16:58:17
root / linksafe
0644
macosxSupport.py
7.004 KB
April 17 2024 16:58:17
root / linksafe
0644
rpc.py
20.462 KB
April 17 2024 16:58:17
root / linksafe
0644
run.py
13.373 KB
April 17 2024 16:58:17
root / linksafe
0644
tabbedpages.py
17.741 KB
April 17 2024 16:58:17
root / linksafe
0644
textView.py
3.462 KB
April 17 2024 16:58:17
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF