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/lib-stdwin | |
parent | 3bc034bb7982078514acb829dcd95ffe67ea2d48 (diff) | |
download | cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.zip cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.gz cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.bz2 |
posix -> os
Diffstat (limited to 'Lib/lib-stdwin')
-rw-r--r-- | Lib/lib-stdwin/anywin.py | 4 | ||||
-rw-r--r-- | Lib/lib-stdwin/dirwin.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/lib-stdwin/anywin.py b/Lib/lib-stdwin/anywin.py index bb7e865..38ee869 100644 --- a/Lib/lib-stdwin/anywin.py +++ b/Lib/lib-stdwin/anywin.py @@ -3,11 +3,11 @@ import dirwin import filewin -import path +import os def open(name): print 'opening', name, '...' - if path.isdir(name): + if os.path.isdir(name): w = dirwin.open(name) else: w = filewin.open(name) diff --git a/Lib/lib-stdwin/dirwin.py b/Lib/lib-stdwin/dirwin.py index beb5222..e8b0170 100644 --- a/Lib/lib-stdwin/dirwin.py +++ b/Lib/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) |