Mercurial > cpython-lru_cache-weakref
view Demo/stdwin/TestDirList.py @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | 5e65b10dd24d |
| children | 73758db2f464 |
line wrap: on
line source
#! /usr/local/bin/python # TestDirList from DirList import DirListWindow from WindowParent import MainLoop def main(): import sys args = sys.argv[1:] if not args: args = ['.'] # Mac: args = [':'] for arg in args: w = DirListWindow().create(arg) MainLoop() main()
