Mercurial > cpython-lru_cache-weakref
annotate Demo/stdwin/TestDirList.py @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | 73758db2f464 |
| children |
| rev | line source |
|---|---|
|
4573
73758db2f464
/usr/local/bin/python -> /usr/bin/env python
Guido van Rossum <guido@python.org>
parents:
1120
diff
changeset
|
1 #! /usr/bin/env python |
| 752 | 2 |
| 3 # TestDirList | |
| 4 | |
| 5 from DirList import DirListWindow | |
| 6 from WindowParent import MainLoop | |
| 7 | |
| 8 def main(): | |
| 9 import sys | |
| 10 args = sys.argv[1:] | |
| 11 if not args: | |
| 12 args = ['.'] | |
| 13 # Mac: args = [':'] | |
| 14 for arg in args: | |
| 15 w = DirListWindow().create(arg) | |
| 16 MainLoop() | |
| 17 | |
| 18 main() |
