cpython/Lib/lib-stdwin/anywin.py

15 lines
235 B
Python
Raw Normal View History

1990-10-13 16:23:40 -03:00
# Module 'anywin'
# Open a file or directory in a window
import dirwin
import filewin
1992-03-31 15:04:48 -04:00
import os
1990-10-13 16:23:40 -03:00
def open(name):
print 'opening', name, '...'
1992-03-31 15:04:48 -04:00
if os.path.isdir(name):
1990-10-13 16:23:40 -03:00
w = dirwin.open(name)
else:
w = filewin.open(name)
return w