Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
3b1a57a4a0bf49b12869f80d9b7880fcff72a85a
/
.
/
Lib
/
lib-stdwin
/
anywin.py
blob: bb7e86547b891610d149e576eaf357eabdbaa94e [
file
] [
log
] [
blame
]
# Module 'anywin'
# Open a file or directory in a window
import
dirwin
import
filewin
import
path
def
open
(
name
):
print
'opening'
,
name
,
'...'
if
path
.
isdir
(
name
):
w
=
dirwin
.
open
(
name
)
else
:
w
=
filewin
.
open
(
name
)
return
w