mirror of
https://github.com/python/cpython.git
synced 2024-12-14 12:26:47 +08:00
15 lines
234 B
Python
Executable File
15 lines
234 B
Python
Executable File
# 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
|