0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 08:52:25 +01:00
cpython/Lib/lib-stdwin/anywin.py
Guido van Rossum 25d7cafd8a posix -> os
1992-03-31 19:04:48 +00:00

15 lines
235 B
Python

# 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