summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/anywin.py
blob: bb7e86547b891610d149e576eaf357eabdbaa94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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