repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Ditched '_find_SET()', since it was a no-value-added wrapper around
[python/dscho.git]
/
Lib
/
lib-stdwin
/
anywin.py
blob
38ee8690a6d2e82cfb9058961637a0bf37fdc79f
1
# Module 'anywin'
2
# Open a file or directory in a window
3
4
import
dirwin
5
import
filewin
6
import
os
7
8
def
open
(
name
):
9
print
'opening'
,
name
,
'...'
10
if
os
.
path
.
isdir
(
name
):
11
w
=
dirwin
.
open
(
name
)
12
else
:
13
w
=
filewin
.
open
(
name
)
14
return
w