diff options
author | Guido van Rossum <guido@python.org> | 1992-03-31 19:04:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-31 19:04:48 (GMT) |
commit | 25d7cafd8a0650c9ca5185e095f85745b229acdc (patch) | |
tree | 40fa47bc8b8e76f18f53558957811cfa0402b358 /Lib/stdwin/dirwin.py | |
parent | 3bc034bb7982078514acb829dcd95ffe67ea2d48 (diff) | |
download | cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.zip cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.gz cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.bz2 |
posix -> os
Diffstat (limited to 'Lib/stdwin/dirwin.py')
-rwxr-xr-x | Lib/stdwin/dirwin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/stdwin/dirwin.py b/Lib/stdwin/dirwin.py index beb5222..e8b0170 100755 --- a/Lib/stdwin/dirwin.py +++ b/Lib/stdwin/dirwin.py @@ -2,24 +2,24 @@ # Directory windows, a subclass of listwin +import os import gwin import listwin import anywin -import path import dircache def action(w, string, i, detail): (h, v), clicks, button, mask = detail if clicks == 2: - name = path.join(w.name, string) + name = os.path.join(w.name, string) try: w2 = anywin.open(name) w2.parent = w - except posix.error, why: + except os.error, why: stdwin.message('Can\'t open ' + name + ': ' + why[1]) def open(name): - name = path.join(name, '') + name = os.path.join(name, '') list = dircache.opendir(name)[:] list.sort() dircache.annotate(name, list) |