0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 16:45:42 +01:00
cpython/Lib/lib-stdwin/anywin.py

15 lines
234 B
Python
Raw Normal View History

1990-10-13 20:23:40 +01:00
# 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