blob: 38ee8690a6d2e82cfb9058961637a0bf37fdc79f [file] [log] [blame]
Guido van Rossumc6360141990-10-13 19:23:40 +00001# Module 'anywin'
2# Open a file or directory in a window
3
4import dirwin
5import filewin
Guido van Rossum25d7caf1992-03-31 19:04:48 +00006import os
Guido van Rossumc6360141990-10-13 19:23:40 +00007
8def open(name):
9 print 'opening', name, '...'
Guido van Rossum25d7caf1992-03-31 19:04:48 +000010 if os.path.isdir(name):
Guido van Rossumc6360141990-10-13 19:23:40 +000011 w = dirwin.open(name)
12 else:
13 w = filewin.open(name)
14 return w