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